30.04.2013, 16:26
I really cant find the problem in the cmd because when i import this cmd in fs its working but in gamemode not work i'm typing /buyvehicle(/kupivozilo) and its freezing me because (Togleplayercontrol its 0) and when i try to use the buttons left and right on the keyboard also enter its not moving only im freezed (stucked.)
CMD:
CMD:
pawn Код:
dcmd_kupivozilo(playerid,params[])
{
if(IsShoping[playerid] == 0)
{
if(GetPlayerState(playerid) != 2)
{
if(IsPlayerInRangeOfPoint(playerid,7.00,564.0015,-1283.4336,17.2559))
{
#pragma unused params
TogglePlayerControllable(playerid, 0);
new string124[128];
IsShoping[playerid] = 1;
SCM(playerid, aboja, " Koristi tipke lijevo i desno za listanje vozila!");
SCM(playerid, aboja, " Za kupnju pritisni enter (F)");
SCM(playerid, aboja, " Za prekid pritisni CTRL");
SVozilaTextDraw(playerid);
format(string124,sizeof(string124),"~w~%s~n~~n~~h~~h~~b~Cijena: %d~n~~n~~h~~h~~y~< ~g~dalje ~h~~h~~y~>",VehNames[vCars[ShopVeh1[1]][0] -400],vCars[ShopVeh1[1]][1]);
TextDrawSetString(CarShopTextDraw[playerid],string124);
}else{SCM(playerid, aboja, " Nisi u salonu!");}
}else{SCM(playerid, aboja, " Nemozes kupovati iz vozila!");}
}else{SCM(playerid, aboja, " Vec listas katalog!");}
return 1;
}
IMAGE:



