PDA

View Full Version : Crashdetect codes


CloW
07/01/2015, 06:23 PM
[12:23:34] [debug] #0 00055148 in public OtherTimer () from nr-rp.amx
[12:23:35] [debug] Run time error 4: "Array index out of bounds"
[12:23:35] [debug] Accessing element at index 51 past array upper bound 49
public OtherTimer()
{
new string[256];
foreach (Player, i)
{
if(CellTime[i] > 0)
{
if (CellTime[i] == cchargetime)
{
CellTime[i] = 1;
if(Mobile[Mobile[i]] == i)
{
CallCost[i] = CallCost[i]+callcost;
}
}
CellTime[i] = CellTime[i] +1;
if (Mobile[Mobile[i]] == MAX_PLAYERS+1 && CellTime[i] == 5)
{
if(IsPlayerConnected(Mobile[i]))
{
new called[MAX_PLAYER_NAME];
GetPlayerName(Mobile[i], called, sizeof(called));
format(string, sizeof(string), "* %s-ov/in telefon zvoni.", called);
RingTone[Mobile[i]] = 10;
ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
}
}
if(CellTime[i] == 0 && CallCost[i] > 0)
{
format(string, sizeof(string), "~w~Poziv kosta~n~~r~$%d",CallCost[i]);
JBC_GivePlayerMoney(i, -CallCost[i]);
GameTextForPlayer(i, string, 5000, 1);
PlayerInfo[i][pKredit1] =- CallCost[i];
CallCost[i] = 0;
}
}
return 1;
}

CloW
08/01/2015, 01:34 PM
BUMP!

ball
08/01/2015, 02:48 PM
Use debug mode, then you will get error line. http://forum.sa-mp.com/showpost.php?p=1253632&postcount=7 here is described how to compile gamemode with debug mode. Then run server and show server_log here with crashdetect log.

But I think that problem is variable Mobile[Mobile[i]]

CloW
09/01/2015, 05:04 PM
[18:46:09] [debug] AMX backtrace:
[18:46:09] [debug] #0 native strfind () [004065e0] from samp-server.exe
[18:46:09] [debug] #1 native strlen () [004061f0] from samp-server.exe
[18:46:09] [debug] #2 native strfind () [004065e0] from samp-server.exe
[18:46:09] [debug] #3 native strfind () [004065e0] from samp-server.exe
[18:46:09] [debug] Native backtrace:
[18:46:09] [debug] #0 00401072 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #1 678a60ba in ?? () from C:\Users\Jahjagic\Desktop\NR\plugins\crashdetect.D LL
[18:46:09] [debug] #2 678a7fee in ?? () from C:\Users\Jahjagic\Desktop\NR\plugins\crashdetect.D LL
[18:46:09] [debug] #3 678a0091 in ?? () from C:\Users\Jahjagic\Desktop\NR\plugins\crashdetect.D LL
[18:46:09] [debug] #4 678a610a in ?? () from C:\Users\Jahjagic\Desktop\NR\plugins\crashdetect.D LL
[18:46:09] [debug] #5 678c4885 in ?? () from C:\Users\Jahjagic\Desktop\NR\plugins\streamer.DLL
[18:46:09] [debug] #6 0047f038 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #7 0048b51a in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #8 004877cb in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #9 00496281 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #10 00496291 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #11 ffc30000 in ?? ()
[18:46:09] [debug] #12 e8042474 in ?? ()
[18:46:09] [debug] #13 ffffffbf in ?? ()
[18:46:09] [debug] #14 c01bd8f7 in ?? ()
[18:46:09] [debug] #15 4859d8f7 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #16 247c83c3 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #17 06740008 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #18 412d01c6 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #19 8b56d8f7 in ?? ()
[18:46:09] [debug] #20 f7d233f1 in ?? ()
[18:46:09] [debug] #21 83082474 in ?? ()
[18:46:09] [debug] #22 057609fa in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #23 eb57c280 in ?? ()
[18:46:09] [debug] #24 30c28003 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #25 85411188 in ?? ()
[18:46:09] [debug] #26 c6e677c0 in ?? ()
[18:46:09] [debug] #27 8a490001 in ?? ()
[18:46:09] [debug] #28 88018a16 in ?? ()
[18:46:09] [debug] #29 06884911 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #30 72f13b46 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #31 55c35ef2 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #32 7d83ec8b in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #33 458b0a10 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #34 850a7508 in ?? ()
[18:46:09] [debug] #35 6a067dc0 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #36 eb0a6a01 in ?? ()
[18:46:09] [debug] #37 ff006a05 in ?? ()
[18:46:09] [debug] #38 4d8b1075 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #39 ff9fe80c in ?? ()
[18:46:09] [debug] #40 458bffff in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #41 5d59590c in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #42 244c8bc3 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #43 24448b08 in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #44 ff006a04 in ?? ()
[18:46:09] [debug] #45 e8102474 in ?? ()
[18:46:09] [debug] #46 ffffff85 in ?? ()
[18:46:09] [debug] #47 1024448b in ?? () from C:\Users\Jahjagic\Desktop\NR\samp-server.exe
[18:46:09] [debug] #48 e8c35959 in ?? ()
in debug mode

CloW
10/01/2015, 01:16 PM
Fixed!