Server COMPLETE Crash
#1

[17:25:28] [debug] Run time error 4: "Array index out of bounds"
[17:25:28] [debug] Accessing element at index 287 past array upper bound 264
[17:25:28] [debug] AMX backtrace:
[17:25:28] [debug] #0 00023eb4 in public Streamer_OnPlayerDisconnect () from NewTimess.amx
[17:25:28] [debug] #1 native CallLocalFunction () [00472c00] from samp-server.exe
[17:25:28] [debug] #2 000011d8 in public OnPlayerDisconnect () from NewTimess.amx

Any clue as to whats going on? Thats information from the Crash Detector, and yes it crashes with / without it.

Everyone in the server freezes and I have to go on my hosts website and restart the server then it rolls back.
Reply
#2

Somewhere in onplayerdisconnect you are using an array out of its bounds.
example
pawn Код:
new array[4];
//in some callback
array[7] = blahblah //= crash because tere isnt any array[7]
Reply
#3

First of all I appreciate you responding, I have a scripter therefore I dont really handle any of it.. but I'm looking at the script and I dont see anything that has to do with an "Array" Mind explaining a little more!? pardon my newbieness.
Reply
#4

Can you post your onplayerdisconnect here if it aint too big?
Reply
#5

Sure, I'll PM you if it doesnt fit Once again I appreciate it
Reply
#6

Did you get it? And while I'm waiting anyone else got a solution aswell?
Reply
#7

Somebody? Anybody? D;
Reply
#8

Quote:

public OnPlayerDisconnect(playerid, reason)
{
new textreason[64];
new plname[24];
GetPlayerName(playerid, plname, sizeof(plname));
new playersip[24];
GetPlayerIp(playerid, playersip, sizeof(playersip));
new string2[128];
if(PlayerInfo[playerid][pAdminDuty] == 1)
{
SafeResetPlayerWeapons(playerid);
}

Is that possibly where the error is occuring?
Reply
#9

You DO have a return 1; right?
Reply
#10

Sent you a message.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)