[Ajuda] Erro 218 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erro 218 (
/showthread.php?tid=287993)
[Ajuda] Erro 218 -
CanTLoGin - 05.10.2011
Erro:
pawn Код:
218: old style prototypes used with optional semicolumns
Linha:
pawn Код:
OnPlayerUpPing(playerid); // Essa й a Linha do Erro
public OnPlayerUpPing(playerid)
{
for(new i; i < MAX_PLAYERS; ++i)
{
if(!IsPlayerConnected(i) || GetPlayerPing(i) < MaxPing) continue;
static
sString[128],
sName[MAX_PLAYER_NAME];
GetPlayerName(i, sName, MAX_PLAYER_NAME);
format(sString, 128, "[ANTI-PING] O jogador %s foi kickado por limite de ping excedido (Limite: %d)", sName, MaxPing);
SendClientMessageToAll(0xFF0000FF, sString);
Kick(i);
}
return true;
}
Re: Erro 218 -
[O.z]Caroline - 05.10.2011
pawn Код:
#define MaxPing 3000
OnPlayerUpPing(playerid);
public OnPlayerUpPing(playerid)
{
for(new i; i < MAX_PLAYERS; ++i)
{
if(!IsPlayerConnected(i) || GetPlayerPing(i) < MaxPing) continue;
static
sString[128],
sName[MAX_PLAYER_NAME];
GetPlayerName(i, sName, MAX_PLAYER_NAME);
format(sString, 128, "[ANTI-PING] O jogador %s foi kickado por limite de ping excedido (Limite: %d)", sName, MaxPing);
SendClientMessageToAll(0xFF0000FF, sString);
Kick(i);
}
return true;
}
aqui nгo apareceu nenhum erro!.
Re: Erro 218 -
WLSF - 05.10.2011
forward OnPlayerUpPing(playerid);
Nгo precisa ter forward antes?
Re: Erro 218 -
CanTLoGin - 05.10.2011
Funcionou Willian. Valeu mesmo.
@Caroline : O seu nгo funcionou. mas obrigado mesmo assim. ^^ '
\\ Estб dando erro para dar Repu..
Re: Erro 218 -
WLSF - 05.10.2011
Disponha