error 028: invalid subscript (not an array or too many subscripts) - 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 (not an array or too many subscripts) (
/showthread.php?tid=465557)
error 028: invalid subscript (not an array or too many subscripts) -
iWaYz - 22.09.2013
Код:
C:\Documents and Settings\User\Desktop\server\gamemodes\GangWars.pwn(661) : error 028: invalid subscript (not an array or too many subscripts): "PayDay"
C:\Documents and Settings\User\Desktop\server\gamemodes\GangWars.pwn(661) : error 017: undefined symbol "playerid"
C:\Documents and Settings\User\Desktop\server\gamemodes\GangWars.pwn(661) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\server\gamemodes\GangWars.pwn(661) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Here's the code from line 661
Код:
TextDrawBackgroundColor(PayDay[playerid], 255);
Re: error 028: invalid subscript (not an array or too many subscripts) -
arakuta - 23.09.2013
Where are you putting this?
I'm seeing that this should be a Per Player Textdraw, you should create it at OnPlayerConnect.
And I suppose you are not doing like this:
pawn Код:
new PlayerText:PayDay[MAX_PLAYERS];
Re: error 028: invalid subscript (not an array or too many subscripts) -
iWaYz - 23.09.2013
SOLVED!