Moin allerseits,
wir haben das Problem das unser SA-MP Server unter Linux crasht und haben schon viele Dinge versucht dies zu verhindern, aber ohne Erfolg. Nun seid ihr gefragt woran das liegen könnte.
Code
//Server Log
[17:11:47] [debug] Server crashed while executing Selfmade.amx
[17:11:47] [debug] AMX backtrace:
[17:11:47] [debug] #0 native mysql_fetch_field () from mysql.so
[17:11:47] [debug] #1 000ffb28 in ShowPlayerStats (pID=1, playerid=1) at E:\Documents\Dev\Selfmade\SAMP ServeR\gamemodes\Selfmade.pwn:6835
[17:11:47] [debug] #2 000ff510 in public ocmd_stats (playerid=1, params[]=@009dc1ac " ") at E:\Documents\Dev\Selfmade\SAMP ServeR\gamemodes\Selfmade.pwn:6805
[17:11:47] [debug] #3 native CallLocalFunction () from samp03svr
[17:11:47] [debug] #4 00001828 in public OnPlayerCommandText (playerid=1, cmdtext[]=@009dc190 "/stats") at E:\Documents\Dev\Selfmade\SAMP ServeR\pawno\include\ocmd.inc:78
[17:11:47] [debug] Native backtrace:
[17:11:47] [debug] #0 b73989f0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[17:11:47] [debug] #1 b7391a62 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[17:11:47] [debug] #2 b7392764 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[17:11:47] [debug] #3 b73946b4 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[17:11:47] [debug] #4 b739831d in ?? () from plugins/crashdetect.so
[17:11:47] [debug] #5 b76ed600 in __kernel_rt_sigreturn () from linux-gate.so.1
[17:11:47] [debug] #6 b7443ba6 in ?? () from /lib32/libc.so.6
[17:11:47] [debug] #7 b725fd9b in _Z9SetStringP6tagAMXiPKc () from plugins/mysql.so
[17:11:47] [debug] #8 b7263701 in _ZN7Natives19n_mysql_fetch_fieldEP6tagAMXPi () from plugins/mysql.so
[17:11:47] [debug] #9 080950e4 in ?? () from ./samp03svr
[17:11:47] [debug] #10 b73934d3 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[17:11:47] [debug] #11 00000001 in ?? () from —k·H•k·,€ø,€ø-‚ø,€ø`ƒø,„ø$l·
//SQL Log
[Fri Dec 9 17:11:47 2016] Function: mysql_query executed: "SELECT * FROM bankkonten WHERE KontoId = '14'" with result: "0".
[Fri Dec 9 17:11:47 2016] Function: mysql_store_result executed with result: "1"
[Fri Dec 9 17:11:47 2016] Function: mysql_num_rows executed with result: "%".
[Fri Dec 9 17:11:47 2016] Function: mysql_fetch_field executed.
[Fri Dec 9 17:11:47 2016] Function: mysql_fetch_field executed.
//Pawno Script
format(string,sizeof(string),"SELECT * FROM "BankTable" WHERE KontoId = '%d'",PlayerInfo[playerid][pKontoId]);
mysql_query(string);
mysql_store_result();
if(mysql_num_rows() != 0)
{
format(KontoId,sizeof(KontoId),"%d",PlayerInfo[playerid][pKontoId]);
mysql_fetch_field("KontoValue",string); KontoMoney = strval(string);
mysql_fetch_field("KontoPin",string); KontoPin = strval(string); <---- Errorzeile
Alles anzeigen
Komplette Infos -^
Mit freundlichen Grüßen
I3lueSkYz und @FinishedHim