15.12.2013, 08:18
Hey, I get This Error when I am trying to make an Admin Command.
My Enum:
The Command:
HELP
pawn Код:
C:\Users\matriXgameR\Desktop\Pawno\gamemodes\BGRP.pwn(147) : error 017: undefined symbol "PlayerInfo"
C:\Users\matriXgameR\Desktop\Pawno\gamemodes\BGRP.pwn(147) : warning 215: expression has no effect
C:\Users\matriXgameR\Desktop\Pawno\gamemodes\BGRP.pwn(147) : error 001: expected token: ";", but found "]"
C:\Users\matriXgameR\Desktop\Pawno\gamemodes\BGRP.pwn(147) : error 029: invalid expression, assumed zero
C:\Users\matriXgameR\Desktop\Pawno\gamemodes\BGRP.pwn(147) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];
pawn Код:
CMD:uzmigun(playerid, params[])
{
if(!PlayerInfo[playerid][pAdmin]) = 1) return SendClientMessage(playerid, COLOR_RED, "[BG:RP] Niste ovlascenji da koristite ovu komandu.");
{
SendClientMessage(playerid, COLOR_RED, "Ova komanda je u izradi.");
}
return 1;
}