Help(Errors)
#1

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;))
Reply
#2

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

}
Reply
#3

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
}
Reply
#4

Thanks alll !!! T/C
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)