13.09.2016, 01:10
Erro:
Enum
Comando
Quote:
(5 : error 021: symbol already defined: "pAdmin" (264) : error 028: invalid subscript (not an array or too many subscripts): "pAdmin" (264) : warning 215: expression has no effect (264) : error 001: expected token: ";", but found "]" (264) : error 029: invalid expression, assumed zero (264) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
Quote:
enum pAdmin { pAdminLevel, pAdminAutorizado } enum PlayerData { pAdminLevel, pAdminAutorizado, pMoney, pPosition, pWeapons }; new pAdmin[MAX_PLAYERS][PlayerData]; |
PHP код:
CMD:autorizar(playerid, params[])
{
new userid;
if( pAdmin[playerid] < 6 )
if(sscanf(params, "u", id))
return SendSyntaxMessage(playerid,-1,"/autorizar [playerid]");
pAdmin[userid][pAdminAutorizado] = 1;
return 1;
}