Server getting shut down itself
#1

Guys i need a small help since i uploaded my script to my Host there is a problem when i start the server the server gets shutdown itself when i contacted their support they said that install crash detect Plugins so after i install i got these at Server Log after they saw this they told my to get support form sa-mp forum! If you got any solution to fix this please Help me!
Server gets shutdown itself when someone join the server
In my home test server server runs perfect idk y it does like this on the host
If this is a wrong section for this thread I am sorry for that!
Код:
[15:23:13] [debug] Run time error 4: "Array index out of bounds"
[15:23:13] [debug] Accessing element at index 4 past array upper bound 3
[15:23:13] [debug] AMX backtrace:
[15:23:13] [debug] #0 002bbc1c in public PingKick () from RGXTDM.amx
[15:24:06] [debug] Run time error 4: "Array index out of bounds"
[15:24:06] [debug] Accessing element at index 4 past array upper bound 3
[15:24:06] [debug] AMX backtrace:
[15:24:06] [debug] #0 002bbc1c in public PingKick () from RGXTDM.amx
[15:25:00] [debug] Run time error 4: "Array index out of bounds"
[15:25:00] [debug] Accessing element at index 4 past array upper bound 3
[15:25:00] [debug] AMX backtrace:
[15:25:00] [debug] #0 002bbc1c in public PingKick () from RGXTDM.amx
[15:25:53] [debug] Run time error 4: "Array index out of bounds"
[15:25:53] [debug] Accessing element at index 4 past array upper bound 3
[15:25:53] [debug] AMX backtrace:
[15:25:53] [debug] #0 002bbc1c in public PingKick () from RGXTDM.amx
[15:26:46] [debug] Run time error 4: "Array index out of bounds"
[15:26:46] [debug] Accessing element at index 4 past array upper bound 3
[15:26:46] [debug] AMX backtrace:
[15:26:46] [debug] #0 002bbc1c in public PingKick () from RGXTDM.amx
Sorry for my bad English!
Reply
#2

please open your RGXTDM gamemode, search for "PingKick()" callback and post it here.
Reply
#3

Here
Quote:

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);
}
}
}
}

#if defined ANTI_MINIGUN
new weap, ammo;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][Level] == 0)
{
GetPlayerWeaponData(i, 7, weap, ammo);
if(ammo > 1 && weap == 3 {
new string[128]; format(string,sizeof(string),"INFO: %s has a mingun with %d ammo", PlayerName2(i), ammo);
MessageToAdmins(COLOR_WHITE,string);
}
}
}
#endif
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)