Quote:
Originally Posted by JuanStone
pawn Код:
#define <zcmd> #define <sscaf2>
command(banear, playerid, params[]) { if(EstaDuty[playerid] == false) { if(PI[playerid][Staff] == 2) { if(sscanf(params, "u", params[0])) return SendClientMessage(playerid, COLOR_BLANCO, "administrador usa /banear [playerid/nombre]."); if(IsPlayerConnected(params[0])&& params[0] != INVALID_PLAYER_ID) { Mensaje(params[0], COLOR_BLANCO, "Te han baneado."); Mensaje(playerid, COLOR_BLANCO, "Lo has baneado."); Ban(params[0]); } else { SendClientMessage(playerid, -1, "Player no conectado."); } } else { SendClientMessage(playerid, -1, "No eres administrador nivel 2"); } } else { SendClientMessage(playerid, -1, "Estas en duty."); } return true; }
|
I think I lack the defined zcmd because I put it and I get the same error
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPR P.pwn(9314) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPR P.pwn(9314) : error 017: undefined symbol "c_banear"
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPR P.pwn(9314) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPR P.pwn(9314) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.