05.06.2017, 02:19
Galera to com esse problema na minha GameMod, vocкs poderia me ajudar?
COMANDO COM ERRO:
PHP код:
C:\Users\Warlley vieira\Desktop\teste\gamemodes\aprendendo.pwn(238) : error 017: undefined symbol "Player"
C:\Users\Warlley vieira\Desktop\teste\gamemodes\aprendendo.pwn(238) : warning 215: expression has no effect
C:\Users\Warlley vieira\Desktop\teste\gamemodes\aprendendo.pwn(238) : error 001: expected token: ";", but found "]"
C:\Users\Warlley vieira\Desktop\teste\gamemodes\aprendendo.pwn(238) : error 029: invalid expression, assumed zero
C:\Users\Warlley vieira\Desktop\teste\gamemodes\aprendendo.pwn(238) : 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.
PHP код:
CMD:setadmin(playerid, params[])
{
if(!IsPlayerAdmin(playerid) && Player[playerid][Admin] < 5 ) return SendClientMessage(playerid, Vermelho, "[ERRO]: {FF0000}Vocк Nгo Tem Permissгo!.");
new PlayerIDSetado, Level, Mensagem[256];
if(sscanf(params, "ud", PlayerIDSetado, Level)) return SendClientMessage(playerid, Vermelho, "[SERVER]» {FFFFFF}Use: /setadmin ID Level.");
if (PlayerIDSetado == INVALID_PLAYER_ID) return SendClientMessage(playerid, Vermelho, "[SERVER]: {FFFFFF}Player Invalido!.");
if(Level > 5 || Level == 0) return SendClientMessage(playerid, Vermelho, "[SERVER] {FF0000}Leveis De 1 a 5!.");
format(Mensagem, sizeof(Mensagem), "AdmCMD: O Admin %s Promoveu o Player %s para Administrador level: %d. ",GetPlayerNameEx(playerid), GetPlayerNameEx(PlayerIDSetado), Level);
SendClientMessageToAll( 0xFFDEADAA, Mensagem);
Player[PlayerIDSetado][Admin] = Level;
return 1;
}