17.04.2017, 14:07
Hello, today i restart my hosted server (for a little change on /sethelp command) and now server crash, i don't think the command is problem here
Serverlog:
Sethelper command:
How to solve this? Contact the host provider or ?
EDIT: The gamemode was compiled bad i think, after recompile it seems it's works
Serverlog:
PHP код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[16:57:11] filterscripts = "" (string)
[16:57:11] weburl = "www.sa-mp.com" (string)
[16:57:11]
[16:57:11] Server Plugins
[16:57:11] --------------
[16:57:11] Loading plugin: crashdetect.so
[16:57:11] CrashDetect v4.18.1 is OK.
[16:57:11] Loaded.
[16:57:11] Loading plugin: mysql_static.so
[16:57:11] >> plugin.mysql: R39-6 successfully loaded.
[16:57:11] Loaded.
[16:57:11] Loading plugin: sscanf.so
[16:57:11]
[16:57:11] ===============================
[16:57:11] sscanf plugin loaded.
[16:57:11] Version: 2.8.2
[16:57:11] (c) 2012 Alex "******" Cole
[16:57:11] ===============================
[16:57:11] Loaded.
[16:57:11] Loading plugin: streamer.so
[16:57:11]
*** Streamer Plugin v2.9.0 by Incognito loaded ***
[16:57:11] Loaded.
[16:57:11] Loaded 4 plugins.
[16:57:11]
[16:57:11] Filterscripts
[16:57:11] ---------------
[16:57:11] Loaded 0 filterscripts.
[16:57:11] [debug] Server crashed due to an unknown error
[16:57:11] [debug] Native backtrace:
[16:57:11] [debug] #0 f747e180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[16:57:11] [debug] #1 f7476064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[16:57:11] [debug] #2 f7476d64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[16:57:11] [debug] #3 f7478cdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[16:57:11] [debug] #4 f747d4d5 in ?? () from plugins/crashdetect.so
[16:57:11] [debug] #5 f776b420 in ?? ()
[16:57:11] [debug] #6 f776b440 in ?? ()
[16:57:11] [debug] #7 f74d16c1 in gsignal () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[16:57:11] [debug] #8 f74d4af2 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[16:57:11] [debug] #9 f74ca878 in __assert_fail () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[16:57:11] [debug] #10 08098558 in ?? () from samp03svr
[16:57:11] [debug] #11 080d60e1 in ?? () from samp03svr
[16:57:11] [debug] #12 080a4f0b in ?? () from samp03svr
[16:57:11] [debug] #13 080ab922 in ?? () from samp03svr
[16:57:11] [debug] #14 080aa0fd in ?? () from samp03svr
[16:57:11] [debug] #15 f74bde46 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[16:57:11] [debug] #16 0804b4e1 in ?? () from samp03svr
[16:57:11] [debug] Registers:
[16:57:11] [debug] EAX: 00000000 EBX: 00004def ECX: 00004def EDX: 00000006
[16:57:11] [debug] ESI: f75e5e18 EDI: f760aff4 EBP: ff904cf8 ESP: ff904ce0
[16:57:11] [debug] EIP: f776b440 EFLAGS: 00000296
[16:57:11] [debug] Stack:
[16:57:11] [debug] ESP+00000000: ff904cf8 00000006 00004def f74d16c1
[16:57:11] [debug] ESP+00000020: 00000006 ff904d98 00000000 ff904d40
[16:57:11] [debug] ESP+00000040: ff904d5c 00000068 00000048 0000003d
[16:57:11] [debug] ESP+00000060: ff904e08 f750baa2 0a250460 0000003d
[16:57:11] [debug] ESP+00000080: 0a250460 0a250460 0a250460 0a250460
[16:57:11] [debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[16:57:11] [debug] ESP+000000c0: 00000000 00000000 00000000 00000000
[16:57:11] [debug] ESP+000000e0: 00000000 00000000 00000000 00000000
[16:57:11] [debug] ESP+00000100: 00000000 00000000 00000000 00000000
[16:57:11] [debug] ESP+00000120: 00000000 00000000 00000000 00000000
[16:57:11] [debug] ESP+00000140: ff904e68 f74ca878 00000000 f75e7fd5
[16:57:11] [debug] ESP+00000160: 0815806d f75e5e18 08158538 f75e5e18
[16:57:11] [debug] ESP+00000180: f4ba0c00 00000000 ff9050b8 08098558
[16:57:11] [debug] ESP+000001a0: 63732f37 74706972 f751936e 00000040
[16:57:11] [debug] ESP+000001c0: 00dff908 00000000 00dff904 00000000
[16:57:11] [debug] ESP+000001e0: 00dff8f8 00000000 00dff8f4 00000000
[16:57:11] [debug] ESP+00000200: 00dff8e8 00000000 00dff8e4 00000000
[16:57:11] [debug] ESP+00000220: 00dff8d8 00000000 00dff8d4 00000000
[16:57:11] [debug] ESP+00000240: 00dff8c8 00000000 00dff8c4 00000000
[16:57:11] [debug] ESP+00000260: 00dff8b8 00000000 00dff9b4 00000000
[16:57:11] [debug] ESP+00000280: 00dff9a8 00000000 00dff9a4 00000000
[16:57:11] [debug] ESP+000002a0: 00dff998 00000000 00dff994 00000000
[16:57:11] [debug] ESP+000002c0: 00dff988 00000000 00dff984 00000000
[16:57:11] [debug] ESP+000002e0: 00dff978 00000000 00dff974 00000000
[16:57:11] [debug] ESP+00000300: 00dff968 00000000 00dff964 00000000
[16:57:11] [debug] ESP+00000320: 00dff958 00000000 00dff954 00000000
[16:57:11] [debug] ESP+00000340: 00dff948 00000000 00dff944 00000000
[16:57:11] [debug] ESP+00000360: 00dff938 00000000 00dff934 00000000
[16:57:11] [debug] ESP+00000380: 00dff928 00000000 00dff924 00000000
[16:57:11] [debug] ESP+000003a0: 00dff918 00000000 00dff914 00000000
[16:57:11] [debug] ESP+000003c0: 0a250460 00000000 f74a56d0 ff9050d0
[16:57:11] [debug] ESP+000003e0: 0a2503e8 f4b9b008 00000068 0a250460
[16:57:11] [debug] Loaded modules:
[16:57:11] [debug] 00000000 - 00187dc3 samp03svr
[16:57:11] [debug] f776d000 - f776d540
[16:57:11] [debug] f7758000 - f775a23f /lib/i386-linux-gnu/i686/cmov/libdl.so.2
[16:57:11] [debug] f773f000 - f7756bfb /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
[16:57:11] [debug] f7652000 - f7744e97 /usr/lib/i386-linux-gnu/libstdc++.so.6
[16:57:11] [debug] f762c000 - f76505eb /lib/i386-linux-gnu/i686/cmov/libm.so.6
[16:57:11] [debug] f760f000 - f762b278 /lib/i386-linux-gnu/libgcc_s.so.1
[16:57:11] [debug] f74a7000 - f7611dc3 /lib/i386-linux-gnu/i686/cmov/libc.so.6
[16:57:11] [debug] f776c000 - f77882cc /lib/ld-linux.so.2
[16:57:11] [debug] f7460000 - f74a2ac4 plugins/crashdetect.so
[16:57:11] [debug] f70bc000 - f7464ac7 plugins/mysql_static.so
[16:57:11] [debug] f775f000 - f7765a0b /lib/i386-linux-gnu/i686/cmov/librt.so.1
[16:57:11] [debug] f66a3000 - f66ac887 /lib/i386-linux-gnu/i686/cmov/libnss_files.so.2
[16:57:11] [debug] f6494000 - f64a31d4 plugins/sscanf.so
[16:57:11] [debug] f63d9000 - f6493681 plugins/streamer.so
PHP код:
CMD:sethelper(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai.");
if (PlayerInfo[playerid][pAdmin] >= 6)
{
new id,sendername[MAX_PLAYER_NAME],giveplayer[MAX_PLAYER_NAME],string[200],level;
if(sscanf(params, "ui",id,level)) return SendClientMessage(playerid, COLOR_GREY, "Sintaxa: {FFFFFF}//sethelper <Nume/ID> <Level(0-2)>");
if(level > 2) return SCM(playerid,-1,"Maxim lvl 2.");
if(id != INVALID_PLAYER_ID)
{
GetPlayerName(id, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[id][pHelper] = level;
if((level > 0) ? (SetPlayerSkin(id, 217)) : (SetPlayerSkin(id, 250))) {}
printf("AdmCmd: %s has promoted %s to helper.", sendername, giveplayer);
if(level > 0)
{
format(string, sizeof(string), "You have been promoted to helper by %s.", sendername);
SendClientMessage(id, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "You have promoted %s to helper.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "AdmBot: Admin %s has set %s to helper.", sendername,giveplayer);
ABroadCast(COLOR_LOGS,string,4);
}
else{
format(string, sizeof(string), "You have demoted from helper by %s.", sendername);
SendClientMessage(id, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "You have demoted %s from helper.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "AdmBot: Admin %s has remove %s from helper.", sendername,giveplayer);
ABroadCast(COLOR_LOGS,string,4);
}
new str[128];
mysql_format(SQL,str,128,"UPDATE users SET `Helper`= %i WHERE `ID`='%d'",PlayerInfo[id][pHelper] ,PlayerInfo[id][pSQLID]);
mysql_tquery(SQL,str,"","");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Acel player nu este conectat.");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
}
return 1;
}
EDIT: The gamemode was compiled bad i think, after recompile it seems it's works