SA-MP Forums Archive
Help(Errors) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help(Errors) (/showthread.php?tid=470506)



Help(Errors) - armando112 - 18.10.2013

How do I fix this errors

pawn Код:
exam.pwn(112) : error 033: array must be indexed (variable "PlayerInfo")
\exam.pwn(112) : error 036: empty statement
exam.pwn(112) : error 029: invalid expression, assumed zero
exam.pwn(112) : fatal error 107: too many error messages on one line
And Lines

pawn Код:
if(PlayerInfo[playerid]== 0;))



Re: Help(Errors) - AlonzoTorres - 18.10.2013

pawn Код:
if(PlayerInfo[playerid]== 0){

}



Re: Help(Errors) - EiresJason - 18.10.2013

You're missing the enum's variable, you have a semi-colon and an extra bracket.
pawn Код:
if(PlayerInfo[playerid]== 0;))
Should be used like this. Change [CHANGEME] to the variable you're looking for.
pawn Код:
if(PlayerInfo[playerid][CHANGEME] == 0)
{
  //code
}



Re: Help(Errors) - armando112 - 18.10.2013

Thanks alll !!! T/C