SA-MP Forums Archive
Error 33 - 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: Error 33 (/showthread.php?tid=312011)



Error 33 - milanosie - 19.01.2012

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)) 



Respuesta: Error 33 - OPremium - 19.01.2012

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?


Re: Error 33 - SuperViper - 19.01.2012

Change

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

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



Re: Error 33 - milanosie - 19.01.2012

omgomgomgomg... i HATE STRING/ARRAY :P