25.05.2013, 01:55
Код:
#define MAX_PING 700
PHP код:
public OnPlayerUpdate(playerid)
{
new pname[MAX_PLAYER_NAME];
new string [256];
new ping = GetPlayerPing(playerid);
if(ping > MAX_PING)
{
format(string, sizeof(string), "O jogador %s [ID: %d] foi kickado do servidor por ultrapassar o ping maximo (%d).", nome(playerid), playerid, MAX_PING);
Kick(playerid);
SendClientMessageToAll(Verde_Floresta, string);
}
return 1;
}
Код:
C:\Users\Matheus-PC\Desktop\samp03x_svr_R1-2_win32\gamemodes\GamingFoxBrasil.pwn(817) : error 017: undefined symbol "nome" C:\Users\Matheus-PC\Desktop\samp03x_svr_R1-2_win32\gamemodes\GamingFoxBrasil.pwn(812) : warning 204: symbol is assigned a value that is never used: "pname" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.