01.10.2016, 13:48
Quote:
|
Hello.
I have a problem on my script it's here Код:
public PingKick()
{
if(ServerInfo[MaxPing] != 0)
{
PingPos++;
PingPos %= PING_MAX_EXCEEDS;
foreach (new i : Player) {
if(IsPlayerConnected(i)) {
PlayerInfo[i][pPing][PingPos] = GetPlayerPing(i);
if(GetPlayerPing(i) > ServerInfo[MaxPing])
{
if(PlayerInfo[i][PingCount] == 0) PlayerInfo[i][PingTime] = TimeStamp();
PlayerInfo[i][PingCount]++;
if(TimeStamp() - PlayerInfo[i][PingTime] > PING_TIMELIMIT)
{
PlayerInfo[i][PingTime] = TimeStamp();
PlayerInfo[i][PingCount] = 1;
}
else if(PlayerInfo[i][PingCount] >= PING_MAX_EXCEEDS)
{
new Sum, Average, x, string[128];
while (x < PING_MAX_EXCEEDS) {
Sum += PlayerInfo[i][pPing][x];
x++;
}
Average = (Sum / PING_MAX_EXCEEDS);
format(string,sizeof(string),"%s has been kicked from the server. (Reason: High Ping (%d) | Average (%d) | Max Allowed (%d) )", pName(i), GetPlayerPing(i), Average, ServerInfo[MaxPing] );
SendClientMessageToAll(COLOR_GREY,string);
SaveToFile("KickLog",string);
SetTimerEx("kickplayer", 2000, false, "i",i);
}
}
}
}
}
}
Код:
C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\FDSTDMpwn(5264) : error 017: undefined symbol "foreach" C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\FDSTDMpwn(5264) : error 029: invalid expression, assumed zero C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\FDSTDM.pwn(5264) : error 017: undefined symbol "i" C:\Users\ўггелпт\Desktop\samp037_svr_R2-1-1_win32\samp037_svr_R2-1-1_win32\gamemodes\FDSTDM.pwn(5264) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. but still nothing Pls help ! Thx!!! |
Quote:
|
can you stop posting in the wrong section omg
just post here Zonekiller http://forum.sa-mp.com/forumdisplay.php?f=12 |


