Error 33
#1

error 033: array must be indexed

What does it mean and what is the solution?

Код:
if(PlayerInfo[i][PhoneNumber] == pnumber)
is the error line

few lines above that:
PHP код:
                   new pnumber[128];
                    if(!
sscanf(params"i[128]"pnumber)) 
Reply
#2

pnumber should be an integer, not an array/string!

pawn Код:
new pnumber;
if(!sscanf(params, "i", pnumber))
BTW... The code here was correct, why you changed it?
Reply
#3

Change

pawn Код:
new pnumber[128];
if(!sscanf(params, "i[128]", pnumber))
to

pawn Код:
new pnumber;
if(!sscanf(params, "i", pnumber))
Reply
#4

omgomgomgomg... i HATE STRING/ARRAY :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)