SA-MP Forums Archive
I can't see why this returns errors - Please help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I can't see why this returns errors - Please help (/showthread.php?tid=257269)



I can't see why this returns errors - Please help - pagie1111 - 25.05.2011

Here are the errors

Код:
G:\SAMP\Sin Life Roleplay\Gamemodes\SinLife.pwn(344) : error 028: invalid subscript (not an array or too many subscripts): "ACCOUNT_DATA"
G:\SAMP\Sin Life Roleplay\Gamemodes\SinLife.pwn(344) : warning 215: expression has no effect
G:\SAMP\Sin Life Roleplay\Gamemodes\SinLife.pwn(344) : error 001: expected token: ";", but found "]"
G:\SAMP\Sin Life Roleplay\Gamemodes\SinLife.pwn(344) : error 029: invalid expression, assumed zero
G:\SAMP\Sin Life Roleplay\Gamemodes\SinLife.pwn(344) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
and here is the line

Quote:

stock GetPlayerAdmin(playerid)
{
return ACCOUNT_DATA[playerid][admin];
}




Re: I can't see why this returns errors - Please help - [DM]Kane - 25.05.2011

I think you should show the enum.