Server Crash Issues? -
Laure - 10.04.2014
I am having a serious problem with my server i am using the gamemode of iRage zGaming. My server auto crashes and closes the gamemode no idea what is causing it? Help will be appreciated and the server log is.
Код:
[10:26:41] Number of vehicle models: 55
[10:26:44] Incoming connection: 192.168.1.3:56479
[10:27:14] Incoming connection: 192.168.1.3:62056
[10:27:14] [join] Lee has joined the server (0:192.168.1.3)
[10:27:19] Character file loaded successfuly.
[10:27:27] [cmd] [Lee]: /makevip
[10:27:32] RCON (In-Game): Player #0 (Lee) has logged in.
[10:27:41] RCON (In-Game): Player [Lee] sent command: makeadmin 0 1337
[10:27:46] [cmd] [Lee]: /admins
[10:27:48] [cmd] [Lee]: /helpers
[10:27:50] [cmd] [Lee]: /givecar
Re: Server Crash Issues? -
Laure - 10.04.2014
BUMP
Re: Server Crash Issues? -
Lidor124 - 10.04.2014
Download crashdetect plugin,
https://sampforum.blast.hk/showthread.php?tid=262796 add it to your plugins folder and open server.cfg and add:
plugins crashdetect
then in the end of your server.cfg add this:
die_on_error 1 - that will make the server die on any small error.
Then when your server crash post here the server log crash part.
Re: Server Crash Issues? -
Laure - 10.04.2014
Here you go the server log
Код:
[11:15:22] Number of vehicle models: 55
[11:15:52] Incoming connection: 192.168.1.3:53889
[11:15:52] [join] Dex_Lee has joined the server (0:192.168.1.3)
[11:15:53] [debug] Run time error 4: "Array index out of bounds"
[11:15:53] [debug] Accessing element at index 9 past array upper bound 8
[11:15:53] [debug] AMX backtrace:
[11:15:53] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:15:53] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:15:54] [debug] Run time error 4: "Array index out of bounds"
[11:15:54] [debug] Accessing element at index 9 past array upper bound 8
[11:15:54] [debug] AMX backtrace:
[11:15:54] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:15:54] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:15:55] [debug] Run time error 4: "Array index out of bounds"
[11:15:55] [debug] Accessing element at index 9 past array upper bound 8
[11:15:55] [debug] AMX backtrace:
[11:15:55] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:15:55] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:15:56] [debug] Run time error 4: "Array index out of bounds"
[11:15:56] [debug] Accessing element at index 9 past array upper bound 8
[11:15:56] [debug] AMX backtrace:
[11:15:56] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:15:56] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:15:56] Character file loaded successfuly.
[11:15:57] [debug] Run time error 4: "Array index out of bounds"
[11:15:57] [debug] Accessing element at index 9 past array upper bound 8
[11:15:57] [debug] AMX backtrace:
[11:15:57] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:15:57] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:15:58] [debug] Run time error 4: "Array index out of bounds"
[11:15:58] [debug] Accessing element at index 9 past array upper bound 8
[11:15:58] [debug] AMX backtrace:
[11:15:58] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:15:58] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:15:59] [debug] Run time error 4: "Array index out of bounds"
[11:15:59] [debug] Accessing element at index 9 past array upper bound 8
[11:15:59] [debug] AMX backtrace:
[11:15:59] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:15:59] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:16:00] [debug] Run time error 4: "Array index out of bounds"
[11:16:00] [debug] Accessing element at index 9 past array upper bound 8
[11:16:00] [debug] AMX backtrace:
[11:16:00] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:16:00] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:16:01] [debug] Run time error 4: "Array index out of bounds"
[11:16:01] [debug] Accessing element at index 9 past array upper bound 8
[11:16:01] [debug] AMX backtrace:
[11:16:01] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:16:01] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:16:02] [debug] Run time error 4: "Array index out of bounds"
[11:16:02] [debug] Accessing element at index 9 past array upper bound 8
[11:16:02] [debug] AMX backtrace:
[11:16:02] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:16:02] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:16:03] [debug] Run time error 4: "Array index out of bounds"
[11:16:03] [debug] Accessing element at index 9 past array upper bound 8
[11:16:03] [debug] AMX backtrace:
[11:16:03] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:16:03] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:16:05] [debug] Run time error 4: "Array index out of bounds"
[11:16:05] [debug] Accessing element at index 9 past array upper bound 8
[11:16:05] [debug] AMX backtrace:
[11:16:05] [debug] #0 00158864 in ?? (0x00000000) from CRP.amx
[11:16:05] [debug] #1 00154a74 in public NOPSetPlayerPos () from CRP.amx
[11:16:05] [debug] Server crashed while executing CRP.amx
[11:16:05] [debug] AMX backtrace:
[11:16:05] [debug] #0 native fwrite () [004056e0] from samp-server.exe
[11:16:05] [debug] #1 001486fc in ?? (0x00c5680c, 0x00cb7fc4) from CRP.amx
[11:16:05] [debug] #2 000a107c in public cmd_b (0x00000000, 0x00cb42a8) from CRP.amx
[11:16:05] [debug] #3 native CallLocalFunction () [00472ad0] from samp-server.exe
[11:16:05] [debug] #4 000082f0 in public OnPlayerCommandText (0x00000000, 0x00cb4288) from CRP.amx
[11:16:05] [debug] Native backtrace:
[11:16:05] [debug] #0 76f077a2 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[11:16:05] [debug] #1 00493990 in ?? () from samp-server.exe
[11:16:05] [debug] #2 0040531e in ?? () from samp-server.exe
Re: Server Crash Issues? -
Laure - 10.04.2014
help yo?
Re: Server Crash Issues? -
AphexCCFC - 10.04.2014
The first post is your console showing that you've logged in and tried a few commands.. My guess is that one of the commands is the problem. You should start a script from scratch cause zGaming is too common.
Re: Server Crash Issues? -
Laure - 10.04.2014
That occurs mainly when i use /makeadmin command and when i say something, any idea to fix it?
Re: Server Crash Issues? -
AphexCCFC - 10.04.2014
Post your makeadmin command. You have an array in your script that is out of bounds.
Re: Server Crash Issues? -
Laure - 10.04.2014
Here you go is the command below;
Код:
CMD:makeadmin(playerid, params[])
{
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] == 7)
{
new playerb, admin, string[128];
if(sscanf(params, "ui", playerb, admin)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /makeadmin [playerid] [level]");
if(!IsPlayerLoggedIn(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player id.");
if(PlayerInfo[playerb][pAdmin] != admin)
{
new log[256];
if(PlayerInfo[playerb][pAdmin] < admin)
{
format(string, sizeof(string), "AdmCmd: %s has {33AA33}promoted {AA3333}%s to level {33AA33}%d {AA3333}admin.", RPN(playerid), RPN(playerb), admin);
format(log, sizeof(log), "AdmCmd: %s (%s) has promoted %s (%s) to level %d admin.", RPN(playerid), RPIP(playerid), RPN(playerb), RPIP(playerb), admin);
}
else if(PlayerInfo[playerb][pAdmin] > admin)
{
format(string, sizeof(string), "AdmCmd: %s has {FF9900}demoted {AA3333}%s to level {FF9900}%d {AA3333}admin.", RPN(playerid), RPN(playerb), admin);
format(log, sizeof(log), "AdmCmd: %s (%s) has demoted %s (%s) to level %d admin.", RPN(playerid), RPIP(playerid), RPN(playerb), RPIP(playerb), admin);
}
Log("logs/makeadmin.log", log);
PlayerInfo[playerb][pAdmin] = admin;
PlayerInfo[playerb][pSafeAdmin] = 1;
SendAdminMessage(COLOR_DARKRED, 1, string);
if(!PlayerInfo[playerb][pAdmin])
{
PlayerInfo[playerb][pSafeAdmin] = 0;
PlayerInfo[playerid][pGangMod] = 0;
PlayerInfo[playerid][pFacMod] = 0;
PlayerInfo[playerid][pBanAppealer] = 0;
SendClientMessage(playerb, COLOR_DARKRED, string);
}
new file[32];
format(file, sizeof(file), "users/%s.ini", RPNU(playerb));
format(file, sizeof(file), "users/%s.ini", dini_Get(file, "AdminName"));
if(dini_Exists(file))
{
dini_IntSet(file, "Admin", PlayerInfo[playerb][pAdmin]);
}
format(file, sizeof(file), "users/%s.ini", RPNU(playerb));
if(dini_Int(file, "AdminAccount") == 1)
{
format(file, sizeof(file), "users/%s.ini", dini_Get(file, "OldName"));
dini_IntSet(file, "Admin", PlayerInfo[playerb][pAdmin]);
}
}
else SendClientMessage(playerid, COLOR_GREY, "Player already has this admin level.");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
}
return 1;
}
ps: i am sure not only this is causing the crash like i stated before when i say something server crashes too.
Re: Server Crash Issues? -
Laure - 10.04.2014
someone help?