SA-MP Forums Archive
Invalid Subscription - 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: Invalid Subscription (/showthread.php?tid=589008)



Invalid Subscription - PowerF - 14.09.2015

Код:
  error 028: invalid subscript (not an array or too many subscripts): "PlayerData"
  warning 215: expression has no effect
  error 001: expected token: ";", but found "]"
  error 029: invalid expression, assumed zero
  fatal error 107: too many error messages on one line
This line

Код:
                        if(IsPlayerConnected(i) && playerData[i][playerLevel] >= 1 && playerData[i][playerLevel] < 7 && PlayerData[i][AHide] == 0)



Re: Invalid Subscription - Darrenr - 14.09.2015

If you change the code to:

pawn Код:
if(IsPlayerConnected(i) && playerData[i][playerLevel] >= 1)
Do you still get the error?


Re: Invalid Subscription - jlalt - 14.09.2015

PHP код:
 if(IsPlayerConnected(i) && playerData[i][playerLevel] >= && playerData[i][playerLevel] < && playerData[i][AHide] == 0
maybe your problem was here:
Код:
PlayerData[i][AHide]
instead of it try:
PHP код:
playerData[i][AHide



Re: Invalid Subscription - PowerF - 14.09.2015

Thank you jlalt!