EaLighT
Умник
Ребят,сделал систему личного кара,но когда впихиваешь этот код в OnGameModeInit,то он неработает.
В FilterScript'e котором я писал саму сисму все работало.Сам код:
В чем может быть проблема?
Весь паблик:
---------- Post added at 21:39 ---------- Previous post was at 19:51 ----------
#help
В FilterScript'e котором я писал саму сисму все работало.Сам код:
Код:
for(new c = 0; c < MAX_VEHICLES; c++)
{
if (VehicleSystem[c][owned]==1)
{
format(TextCar,sizeof(TextCar),"????????: {00FFEE}%s{FFFFFF}",VehicleSystem[GetCreatorID(c)][owner]);
TextUpCar[c] = Create3DTextLabel(TextCar, 0xFFFFFFAA ,0,0,0,20.0,0);
Attach3DTextLabelToVehicle(TextUpCar[c],c,0.0,0.0,0.0);
SetVehicleNumberPlate(c, VehicleSystem[GetCreatorID(c)][owner]);
}
else if(VehicleSystem[c][owned]==0)
{
format(TextCar,sizeof(TextCar),"{3E03EE}?????????? ?????????, ????: {48FC01}%d %d",VehicleSystem[GetCreatorID(c)][preis]);
TextUpCar[c] = Create3DTextLabel(TextCar, 0xFFFFFFAA ,0,0,0,20.0,0);
Attach3DTextLabelToVehicle(TextUpCar[c],c,0.0,0.0,0.0);
}
}
Весь паблик:
Код:
//-----------------------------------------------------------------------------------
TDName = TextDrawCreate(56.000000, 211.000000, "Name");
TextDrawBackgroundColor(TDName, 255);
TextDrawFont(TDName, 2);
TextDrawLetterSize(TDName, 0.280000, 0.799999);
TextDrawColor(TDName, -1);
TextDrawSetOutline(TDName, 0);
TextDrawSetProportional(TDName, 1);
TextDrawSetShadow(TDName, 1);
//-----------------------------------------------------------------------------------
TDYes = TextDrawCreate(42.000000, 226.000000, "Yes");
TextDrawBackgroundColor(TDYes, 255);
TextDrawFont(TDYes, 2);
TextDrawLetterSize(TDYes, 0.500000, 1.000000);
TextDrawColor(TDYes, 16777215);
TextDrawSetOutline(TDYes, 0);
TextDrawSetProportional(TDYes, 1);
TextDrawSetShadow(TDYes, 1);
//-----------------------------------------------------------------------------------
TDNo = TextDrawCreate(133.000000, 226.000000, "No");
TextDrawBackgroundColor(TDNo, 255);
TextDrawFont(TDNo, 2);
TextDrawLetterSize(TDNo, 0.500000, 1.000000);
TextDrawColor(TDNo, 16777215);
TextDrawSetOutline(TDNo, 0);
TextDrawSetProportional(TDNo, 1);
TextDrawSetShadow(TDNo, 1);
//-----------------------------------------------------------------------------------
TDYesResult = TextDrawCreate(52.000000, 236.000000, "0");
TextDrawBackgroundColor(TDYesResult, 255);
TextDrawFont(TDYesResult, 2);
TextDrawLetterSize(TDYesResult, 0.500000, 1.000000);
TextDrawColor(TDYesResult, -16711681);
TextDrawSetOutline(TDYesResult, 0);
TextDrawSetProportional(TDYesResult, 1);
TextDrawSetShadow(TDYesResult, 1);
//-----------------------------------------------------------------------------------
TDNoResult = TextDrawCreate(137.000000, 236.000000, "0");
TextDrawBackgroundColor(TDNoResult, 255);
TextDrawFont(TDNoResult, 2);
TextDrawLetterSize(TDNoResult, 0.500000, 1.000000);
TextDrawColor(TDNoResult, -16711681);
TextDrawSetOutline(TDNoResult, 0);
TextDrawSetProportional(TDNoResult, 1);
TextDrawSetShadow(TDNoResult, 1);
//-----------------------------------------------------------------------------------
TDTime = TextDrawCreate(93.000000, 230.000000, "60");
TextDrawBackgroundColor(TDTime, 255);
TextDrawFont(TDTime, 2);
TextDrawLetterSize(TDTime, 0.430000, 0.699999);
TextDrawColor(TDTime, -1);
TextDrawSetOutline(TDTime, 0);
TextDrawSetProportional(TDTime, 1);
TextDrawSetShadow(TDTime, 1);
//---------------------------------------------------------------------------------------
Clock = TextDrawCreate(547.000000,29.000000, "00:00");//??? ??????? ???????????
TextDrawLetterSize(Clock,0.5,1.5);//?????? ??????
TextDrawFont(Clock,3);//????? ??????
TextDrawColor(Clock,0xffffffff);//????
TextDrawSetOutline(Clock,1);
//????
Date = TextDrawCreate(547.000000,45.000000, "07.11.2014");//??????? ?????????
TextDrawBackgroundColor(Date,0x00000FF);//???? ???????
TextDrawLetterSize(Date,0.400000,2.2000000);
TextDrawFont(Date,3);//?????
TextDrawColor(Date,0x0086ffAA);//???? ????????
TextDrawSetOutline(Date,1);//???????? ???????
TextDrawSetProportional(Date,1);//???????? ???????????????? ???????????
SetTimer("jonny", 10000, 1);//????? ????? ??????? ??????????? ???? ? ????
//-----------------------------------------------------------------------------------
ObjectLoad();
CreateVehicles();//??????? ??????
//-----------------------------------------------------------------------------------
LoadMusor();
UsePlayerPedAnims();
new texts[50];
format(texts,sizeof(texts),"{FFFF00}?????? ?? ??????:{ffffff} %d??",musor);
musor3d = CreateDynamic3DTextLabel(texts,COLOR_YELLOW,1596.3954,-1533.1586,13.6011,45.0,INVALID_PLAYER_ID,INVALID_PLAYER_ID,
0,-1,-1,-1,100.0);
Pricep3dtext[0] = Create3DTextLabel("{ffa500}[????: {FFFFFF}?????????{ffa500}]", COLOR_YELLOW, 0.0, 0.0, -100.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(Pricep3dtext[0], Pricep[0], 0.0, 0.0, 1.5);
Pricep3dtext[1] = Create3DTextLabel("{ffa500}[????: {FFFFFF}???????? ???????{ffa500}]", COLOR_YELLOW, 0.0, 0.0, -100.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(Pricep3dtext[1], Pricep[1], 0.0, 0.0, 1.5);
Pricep3dtext[2] = Create3DTextLabel("{ffa500}[????: {FFFFFF}??????{ffa500}]", COLOR_YELLOW, 0.0, 0.0, -100.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(Pricep3dtext[2], Pricep[2], 0.0, 0.0, 1.5);
Pricep3dtext[3] = Create3DTextLabel("{ffa500}[????: {FFFFFF}??????{ffa500}]", COLOR_YELLOW, 0.0, 0.0, -100.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(Pricep3dtext[3], Pricep[3], 0.0, 0.0, 1.5);
Pricep3dtext[4] = Create3DTextLabel("{ffa500}[????: {FFFFFF}???????????? ????????{ffa500}]", COLOR_YELLOW, 0.0, 0.0, -100.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(Pricep3dtext[4], Pricep[4], 0.0, 0.0, 1.5);
Pricep3dtext[5] = Create3DTextLabel("{ffa500}[????: {FFFFFF}??????{ffa500}]", COLOR_YELLOW, 0.0, 0.0, -100.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(Pricep3dtext[5], Pricep[5], 0.0, 0.0, 1.5);
Pricep3dtext[6] = Create3DTextLabel("{ffa500}[????: {FFFFFF}?????{ffa500}]", COLOR_YELLOW, 0.0, 0.0, -100.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(Pricep3dtext[6], Pricep[6], 0.0, 0.0, 1.5);
Pricep3dtext[7] = Create3DTextLabel("{ffa500}[????: {FFFFFF}?????????{ffa500}]", COLOR_YELLOW, 0.0, 0.0, -100.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(Pricep3dtext[7], Pricep[7], 0.0, 0.0, 1.5);
Pricep3dtext[8] = Create3DTextLabel("{ffa500}[????: {FFFFFF}???????????? ????????{ffa500}]", COLOR_YELLOW, 0.0, 0.0, -100.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(Pricep3dtext[8], Pricep[8], 0.0, 0.0, 1.5);
Pricep3dtext[9] = Create3DTextLabel("{ffa500}[????: {FFFFFF}??????{ffa500}]", COLOR_YELLOW, 0.0, 0.0, -100.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(Pricep3dtext[9], Pricep[9], 0.0, 0.0, 1.5);
//-----------------------------------------------------------------------------------------------
ZonaZZ = GangZoneCreate(1056.342, -1575.273, 1185.638, -1413.416);
Ptrash = CreatePickup(1275, 23,1591.7191,-1553.4762,13.5909,0);
Create3DTextLabel("????? ?????????? ?? ?????? Oxide DM!\n????? ?????? ??????? ???????\n???????: /help", COLOR_LIGHTBLUE,1134.5383,-1490.2885,22.7690,10.0,0,0);
Create3DTextLabel("?????? ??????? ??????", 0xFE0000FF,1591.7191,-1553.4762,13.5909,3.0,0,0);
Parawut = CreatePickup(1310,23,1531.5085,-1353.5598,329.4535);
AmmoPick = CreatePickup(1239,23,295.5483,-38.5148,1001.5156);
PjobGruz = CreatePickup(1275,23,-50.6021,-233.5800,6.7646);
PickZZ = CreatePickup(1254,23,1134.4688,-1483.8488,22.7690);
DisableInteriorEnterExits();
SetGameModeText("Version: 0.1");
LoadVehicles();
LoadBusiness();//????????? ???????
LoadHouses();// ????????? ????
GangLoad();
new Max = GetMaxPlayers();
for(new i=0; i<Max; i++)
{
Level3D[i] = Create3DTextLabel(" ",0xFFFFFFAA,0.000,0.000,-4.000,18.0,0,1);
}
SetTimer("AngleUpdate", 200, true);
SetTimer("Drift", 200, true);
SetTimer("CheckWeapon",1000,1);
SetTimer("Fresh",1000,1);
SetTimer("Quiz",vTimer * 100000, true);
EnableStuntBonusForAll(0);
new i = 0;
while(i < 300)
{
AddPlayerClass(i, 0.0,0.0,0.0,0.0, 25,100,31,1000,24,200);
i++;
}
for(new c = 0; c < MAX_VEHICLES; c++)
{
if (VehicleSystem[c][owned]==1)
{
format(TextCar,sizeof(TextCar),"????????: {00FFEE}%s{FFFFFF}",VehicleSystem[GetCreatorID(c)][owner]);
TextUpCar[c] = Create3DTextLabel(TextCar, 0xFFFFFFAA ,0,0,0,20.0,0);
Attach3DTextLabelToVehicle(TextUpCar[c],c,0.0,0.0,0.0);
SetVehicleNumberPlate(c, VehicleSystem[GetCreatorID(c)][owner]);
}
else if(VehicleSystem[c][owned]==0)
{
format(TextCar,sizeof(TextCar),"{3E03EE}?????????? ?????????, ????: {48FC01}%d %d",VehicleSystem[GetCreatorID(c)][preis]);
TextUpCar[c] = Create3DTextLabel(TextCar, 0xFFFFFFAA ,0,0,0,20.0,0);
Attach3DTextLabelToVehicle(TextUpCar[c],c,0.0,0.0,0.0);
}
}
---------- Post added at 21:39 ---------- Previous post was at 19:51 ----------
#help
