forward PingCheck();
SetTimer("PingCheck",1000,true);
public PingCheck()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
new ping = GetPlayerPing(i),name[MAX_PLAYER_NAME],string[128];
GetPlayerName(i,name,sizeof(name));
if(ping > 250)
{
format(string,sizeof(string),"[ANTI HIGH PING] Spieler %s wurde wegen seinem Ping von %d vom Server gekickt."name,ping);
SendClientMessageToAll(ROT,string);
Kick(i);
}
}
return 1;
}
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\RainbowReload.pwn(93) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\RainbowReload.pwn(93) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\RainbowReload.pwn(93) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\RainbowReload.pwn(93) : error 001: expected token: ";", but found ")"
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\RainbowReload.pwn(93) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\RainbowReload.pwn(93) : 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.
Ich hoffe das mir Jemand helfen kann danke im Vorraus