09.09.2012, 02:13
Quote:
Bom, eu penso assim:
Nгo se deve usar a OnPlayerUpdate para coisas desnecessбrias como essa. Mude o que estб naquela public para um timer que inicie, uns 30 segundos, depois de conectar ao servidor. Edit: Onde estб escrito Cor coloque uma cor em hexadecimal como: 0xFFFFFFFF |
Quote:
#define MaxPing 5000 new Nome[MAX_PLAYER_NAME]; public OnPlayerUpdate(playerid) { if(GetPlayerPing(playerid) > MaxPing) { new string[128]; GetPlayerName(playerid, Nome, MAX_PLAYER_NAME); format(string, sizeof(string), "[ANTI-PING] %s Foi kickado por ultrapassar o limite. (Mбximo: %d ms)", Nome, MaxPing); SendClientMessageToAll(Cor, string); Kick(playerid); } return 1; } |
Quote:
C:\Documents and Settings\Gabriel Souza.GABRIEL-SOUZA\Desktop\mygmsv.pwn(1649) : error 017: undefined symbol "Cor" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |