Job System Help Me -
Ale1234 - 16.04.2015
Код:
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.
Re: Job System Help Me -
Antoniohl - 16.04.2015
where's the line?
Re: Job System Help Me -
Antoniohl - 16.04.2015
Код:
CMD:cisti(playerid,params[])
{
new vozilo = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][cistac] == IDPOSLA)
{
if(!KosacTrave(vozilo)) return SCM(playerid,COLOR_GRAD4,"[Greska]: Moras biti u vozilu za ciscenje.");
if(GetPVarInt(playerid,"Cisti") == 1) return SCM(playerid,COLOR_GRAD4,"[ERROR]: Vec cistis ulice.");
SetPVarInt(playerid,"Cisti",1);
SetPVarInt(playerid,"CP",3);
SetPlayerCheckpoint(playerid,2444.4646,-28.8980,26.4293);
PlayerPlaySound(playerid, 1058, 0, 0, 0);
}
else SCM(playerid,COLOR_GRAD4,"Nemas posao.");
return 1;
}
Re: Job System Help Me -
Ale1234 - 16.04.2015
Error line
if(PlayerInfo[playerid][cistac] == IDPOSLA);//ovo posao stavite kako je vama.
Re: Job System Help Me -
Antoniohl - 16.04.2015
Already fixed Look ^
Re: Job System Help Me -
Ale1234 - 16.04.2015
And again error
C:\Users\Ewony\Desktop\New folder\filterscripts\cisti.pwn(335) : error 029: invalid expression, assumed zero
C:\Users\Ewony\Desktop\New folder\filterscripts\cisti.pwn(335) : warning 215: expression has no effect
C:\Users\Ewony\Desktop\New folder\filterscripts\cisti.pwn(335) : error 001: expected token: ";", but found "]"
C:\Users\Ewony\Desktop\New folder\filterscripts\cisti.pwn(335) : error 029: invalid expression, assumed zero
C:\Users\Ewony\Desktop\New folder\filterscripts\cisti.pwn(335) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Job System Help Me -
Antoniohl - 16.04.2015
show me enum of PlayerInfo
Re: Job System Help Me -
Ale1234 - 16.04.2015
I don`t have this enum
help me how i create this
Re: Job System Help Me -
Antoniohl - 16.04.2015
PlayerInfo[playerid][
cistac] it's in the Enumerator PlayerInfo?
Re: Job System Help Me -
Ale1234 - 16.04.2015
enum PlayerInfo[playerid][cistac] is this correct