Job System Help Me
#1

Код:
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.
Reply
#2

where's the line?
Reply
#3

Код:
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;
}
Reply
#4

Error line

if(PlayerInfo[playerid][cistac] == IDPOSLA);//ovo posao stavite kako je vama.
Reply
#5

Already fixed Look ^
Reply
#6

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.
Reply
#7

show me enum of PlayerInfo
Reply
#8

I don`t have this enum help me how i create this
Reply
#9

PlayerInfo[playerid][cistac] it's in the Enumerator PlayerInfo?
Reply
#10

enum PlayerInfo[playerid][cistac] is this correct
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)