16.04.2015, 23:13
Код:
CMD:cisti(playerid,params[]) { new vozilo = GetPlayerVehicleID(playerid);//Definiramo "vozilo" koje cemo koristiti dole u komandi. if(PlayerInfo[playerid][cistac] == IDPOSLA);//ovo posao stavite kako je vama. { if(!KosacTrave(vozilo)) return SCM(playerid,COLOR_GRAD4,"[Greska]: Moras biti u vozilu za ciscenje.");//Zahteva od igraca da bude u vozilu, ne mozete krenuti sa poslom ukoliko ste na nogama if(GetPVarInt(playerid,"Cisti") == 1) return SCM(playerid,COLOR_GRAD4,"[ERROR]: Vec cistis ulice.");//Ukoliko vec kosite travu, necete moci opet pokrenuti.Ovo vam nece dozvoliti SetPVarInt(playerid,"Cisti",1);//Postavlja kosenje trave na "1" to znaci da ste poceli da kosite SetPVarInt(playerid,"CP",3); SetPlayerCheckpoint(playerid,2444.4646,-28.8980,26.4293);//Postavlja CheckPoint na odredjene kordiante PlayerPlaySound(playerid, 1058, 0, 0, 0);//Zvuk kad prodjete kroz CP } else SCM(playerid,COLOR_GRAD4,"Nemas posao."); return 1; }
Errors:
C:\Users\Ewony\Desktop\New folder\filterscripts\Cistac.pwn(336) : error 029: invalid expression, assumed zero
C:\Users\Ewony\Desktop\New folder\filterscripts\Cistac.pwn(336) : warning 215: expression has no effect
C:\Users\Ewony\Desktop\New folder\filterscripts\Cistac.pwn(336) : error 001: expected token: ";", but found "]"
C:\Users\Ewony\Desktop\New folder\filterscripts\Cistac.pwn(336) : error 029: invalid expression, assumed zero
C:\Users\Ewony\Desktop\New folder\filterscripts\Cistac.pwn(336) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.