Server getting shut down itself [REPOST]
#1

<Removed>

Problem Solved!
Reply
#2

BUMP Pls anyone help!
Reply
#3

Sorry i cannot help with fixing it, but you might be able to remove the Pingkick script to fix it temporarily?
Reply
#4

Recompile your GM with -d3. In you pawno folder make a file ( pawn.cfg) and in this file type -d3, save it. Then recompile your GameMode , you will see that in debug mode will show you the exact line of your problem.
Reply
#5

Post the code from PingKick().
Reply
#6

Quote:
Originally Posted by Banana_Ghost
Посмотреть сообщение
Post the code from PingKick().
Код:
forward PingKick();
public PingKick()
{
if(ServerInfo[MaxPing] != 0)
{
PingPos++; if(PingPos > PING_MAX_EXCEEDS) PingPos = 0;

for(new i=0; i<MAX_PLAYERS; 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) )", PlayerName2(i), GetPlayerPing(i), Average, ServerInfo[MaxPing] );
SendClientMessageToAll(grey,string);
SaveToFile("KickLog",string);
Kick(i);
}
}
}
}
Reply
#7

BUMP
Reply
#8

Bump!!
Reply
#9

I don't see any arrays that are out of bounds. Install nativechecker see if you can get any further information from there.
Reply
#10

It's either PingPos or PingCount I think
By the way, that code looks really awful.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)