Admin. - 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: Admin. (
/showthread.php?tid=345552)
Admin. -
MechaTech - 25.05.2012
I'm getting this error.
Код:
W:\Users\Magdy\Desktop\Server 3.0e\filterscripts\MyAdmin.pwn(324) : error 001: expected token: ")", but found "["
W:\Users\Magdy\Desktop\Server 3.0e\filterscripts\MyAdmin.pwn(324) : error 029: invalid expression, assumed zero
W:\Users\Magdy\Desktop\Server 3.0e\filterscripts\MyAdmin.pwn(324) : warning 215: expression has no effect
W:\Users\Magdy\Desktop\Server 3.0e\filterscripts\MyAdmin.pwn(324) : error 001: expected token: ";", but found "]"
W:\Users\Magdy\Desktop\Server 3.0e\filterscripts\MyAdmin.pwn(324) : fatal error 107: too many error messages on one line
The line 324:
pawn Код:
if(AccountInfo[playerid][AdminLevel] < 2)
Begin of my script:
pawn Код:
enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pDeaths
}
enum Info
{
AdminLevel
}
new PlayerInfo[MAX_PLAYERS][pInfo];
new AccountInfo[MAX_PLAYERS];
Re: Admin. -
iGetty - 25.05.2012
pawn Код:
new AccountInfo[MAX_PLAYERS][Info];
Re: Admin. -
MechaTech - 25.05.2012
Thanks worked.
Re: Admin. -
iGetty - 25.05.2012
That's good. Glad to know.