SA-MP Forums Archive
: error 028: invalid subscript - 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 028: invalid subscript (/showthread.php?tid=473699)



: error 028: invalid subscript - Brandon_More - 04.11.2013

Код:
: error 028: invalid subscript (not an array or too many subscripts): "IP"
: error 001: expected token: ";", but found "]"
: error 029: invalid expression, assumed zero
: fatal error 107: too many error messages on one line
The error is on the middle line:

Код:
        new IP[2][16];
        mysql_fetch_field_row(IP[0],"IP");
        GetPlayerIp(playerid, IP[1], 16);



Re: : error 028: invalid subscript - RayDcosta - 04.11.2013

Quote:

mysql_fetch_field_row(IP[0],"IP");

not quite sure but i think u cant use arrays in that.
try defining one as IP1 and the other as IP2. ( i mean instead of IP[2] )
PM me if it still gives an error.
dont see any other issue tbh