Error Problem! - 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 Problem! (
/showthread.php?tid=396404)
Error Problem! -
Gold_Master - 30.11.2012
(271) : error 033: array must be indexed (variable "
if ("gPlayerLogged[i] = 0");
helppp
Re: Error Problem! -
NumbSkull - 30.11.2012
pawn Код:
new gPlayerLogged[MAX_PLAYERS]
Re: Error Problem! -
Gold_Master - 30.11.2012
noup dont work
Re: Error Problem! -
NumbSkull - 30.11.2012
show the code and where you defined gPlayerLogged
Re: Error Problem! -
Gold_Master - 30.11.2012
http://pastebin.com/GrvnESRZ here
Re: Error Problem! -
NumbSkull - 30.11.2012
see on line 11 gPlayerLogged is defined only as "new gPlayerLogged" and you are trying to use it as an array "gPlayerLogged[i]" you would need to define it at the top as "gPlayerLogged[MAX_PLAYERS]" to use it like you are trying **edit:: just noticed you re-defined it only define it once**