29.08.2016, 16:02
hey guys i make a work in server but i get some errors
errors
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER)//provjera dali je na mjestu vozaca { if(VoziloKosaca(GetPlayerVehicleID(playerid)) && PlayerInfo[playerid][pPosao] != 1)//provjera dali je igrac u kosilici i dali je zaposlen kao kosac trave { SendClientMessage(playerid, -1, "GRESKA: Niste zaposleni kao kosac trave!");//љalje igracu poruku RemovePlayerFromVehicle(playerid);//izbacuje igraca iz vozila } return 1; }
Код:
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\filterscripts\Poslovi.pwn(120) : error 017: undefined symbol "VoziloKosaca" C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\filterscripts\Poslovi.pwn(120) : warning 215: expression has no effect C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\filterscripts\Poslovi.pwn(120) : error 001: expected token: ";", but found "]" C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\filterscripts\Poslovi.pwn(120) : error 029: invalid expression, assumed zero C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\filterscripts\Poslovi.pwn(120) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.