Skripta koju koristim:MG Mafia Game
Detaljan opis problema:Vako u FS je bilo 14 erora i ja sam naso te erore i delete sam pod tom linijom i sada nema erora nista i dodo sam auta par i auta nova rade ali imam problem kada kucam npr /b pise niste na kod autosalona(/kupivozilo) kako da to sredim kad god ukucam neku komandu to pise jedino ako odem kod autosalona i kucam /autosalon to radi ali ovo nista nece mozeli mi neko pomoci
Dio skripte:Ako zatreba dacu
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Daj komandu /autosalon ...
Pise mi kupivozilo evo ti komanda
if(strcmp(cmd, "/kupivozilo", true) == 0)
{
if(KupnjaVozila[playerid] == false)
{
if(GetPlayerState(playerid) != 2)
{
if (IsPlayerInRangeOfPoint(playerid, 10.0,403.9820,-1532.8796,32.2734) )
{
TogglePlayerControllable(playerid, 0);
KupnjaVozila[playerid] = true;
Mtimer[playerid] = SetTimerEx("MotoIzlozba",500,1,"i",playerid);
SCM(playerid, COLOR_LIGHTBLUE, " {C0C0C0}Koristi tipku lijevo I desno da listas.");
SCM(playerid, COLOR_LIGHTBLUE, " {C0C0C0}Za kupnju stisnite {FF0000}Enter.");
SCM(playerid, COLOR_LIGHTBLUE, " {C0C0C0}Za odustat stisnite {FF0000}SHIFT.");
SMotoText(playerid);
format(string,sizeof(string),"~h~~h~~b~Cjena: %d~n~~n~~h~~h~~y~< ~g~dalje ~h~~h~~y~>",Modeli_vozila[AutoModel][1]);
TextDrawSetString(MotoTextDraw[playerid],string);
SetPlayerCameraPos(playerid, 403.0082,-1530.3290,32.2734);
SetPlayerCameraLookAt(playerid,404.5653,-1539.0636,32.2734);
}
else
{
SCM(playerid, COLOR_LIGHTRED, " {0000FF}ODBIJENO: {C0C0C0}Niste kod autosalona (/kupivozilo).");
return 1;
}
}
else
{
SCM(playerid, COLOR_LIGHTRED, " {FFFFFF}Nemozete kupiti ako ste u vozilu.");
return 1;
}
}
else
{
SCM(playerid, COLOR_LIGHTRED, " {C0C0C0}Vec pregledavate vozila!");
return 1;
}
return 1;
}
ako treba jos sta reci
Mozes mi pomoci kako da erore popravim ja samo znam da i delete evo ti erori i evo linije od erora
C:\Documents and Settings\XP\Desktop\Mafia Game\filterscripts\autosalon.pwn(604) : error 017: undefined symbol "strtok"
C:\Documents and Settings\XP\Desktop\Mafia Game\filterscripts\autosalon.pwn(604) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\XP\Desktop\Mafia Game\filterscripts\autosalon.pwn(671) : error 017: undefined symbol "strtok"
C:\Documents and Settings\XP\Desktop\Mafia Game\filterscripts\autosalon.pwn(671) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\XP\Desktop\Mafia Game\filterscripts\autosalon.pwn(703) : error 017: undefined symbol "strtok"
C:\Documents and Settings\XP\Desktop\Mafia Game\filterscripts\autosalon.pwn(703) : error 033: array must be indexed (variable "x_nr")
C:\Documents and Settings\XP\Desktop\Mafia Game\filterscripts\autosalon.pwn(814) : error 017: undefined symbol "strtok"
C:\Documents and Settings\XP\Desktop\Mafia Game\filterscripts\autosalon.pwn(814) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\XP\Desktop\Mafia Game\filterscripts\autosalon.pwn(821) : error 017: undefined symbol "strtok"
C:\Documents and Settings\XP\Desktop\Mafia Game\filterscripts\autosalon.pwn(821) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\XP\Desktop\Mafia Game\filterscripts\autosalon.pwn(603) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
linije od erora
Linija 604: cmd = strtok(cmdtext, idx);
Linija 671: tmp = strtok(cmdtext, idx);
Linija 703: x_nr = strtok(cmdtext, idx);
Linija 814: tmp = strtok(cmdtext, idx);
Linija 821: tmp = strtok(cmdtext, idx);