Mysql

Započeo Ognjen, Maj 11, 2020, 23:11:32 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Upalim samp server preko gp povezao sam sa gpanelom bazu, i konekcija uspesna,ali srv odjednom crasha sam MW BAZu koristim i mod baza je povezana na freemysqlhost, koristim mysql_Static.so neki plugin
Dio skripte:
16:00:28] [debug] Server crashed while executing MW.amx
[16:00:28] [debug] AMX backtrace:
[16:00:28] [debug] #0 native fwrite () from samp03svr

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
[16:00:28] [debug] Server crashed while executing MW.amx
[16:00:28] [debug] AMX backtrace:
[16:00:28] [debug] #0 native fwrite () from samp03svr
[16:00:28] [debug] #1 006982a4 in public SaveServerStats () at C:\Users\ognje\Desktop\[BCRP] Balkan City Roleplay\Balkan City V.1.0.0\gamemodes\MW.pwn:32116
[16:00:28] [debug] #2 0066dfdc in public SyncTime () at C:\Users\ognje\Desktop\[BCRP] Balkan City Roleplay\Balkan City V.1.0.0\gamemodes\MW.pwn:29305
[16:00:28] [debug] Native backtrace:
[16:00:28] [debug] #0 b73e7ca0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[16:00:28] [debug] #1 b73e0d22 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[16:00:28] [debug] #2 b73e1314 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[16:00:28] [debug] #3 b73e3964 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[16:00:28] [debug] #4 b73e75cd in ?? () from plugins/crashdetect.so
[16:00:28] [debug] #5 b774d600 in __kernel_rt_sigreturn () from linux-gate.so.1
[16:00:28] [debug] #6 b774d405 in __kernel_vsyscall () from linux-gate.so.1
[16:00:28] [debug] #7 b744e367 in gsignal () from /lib32/libc.so.6
[16:00:28] [debug] #8 b744fa23 in abort () from /lib32/libc.so.6
[16:00:28] [debug] #9 b7447697 in ?? () from /lib32/libc.so.6
[16:00:28] [debug] #10 b7447747 in ?? () from /lib32/libc.so.6
[16:00:28] [debug] #11 0809b99c in ?? () from ./samp03svr
[16:00:28] [debug] #12 0809bdff in ?? () from ./samp03svr
[16:00:28] [debug] #13 080950e4 in ?? () from ./samp03svr
[16:00:28] [debug] #14 b73e27b3 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:00:28] [debug] #15 00000157 in ?? () from  —q·H•q·¬[Ä	¬[Ä	­]Ä	¬[Ä	]_Ä	¬_Ä	$r·

Slika/video ingame problema(obavezno ako je ingame problem):
SSCANF JE UPDATEOVAN!
Poslednja Izmena: Maj 11, 2020, 23:14:20 POSLE PODNE od Ognjen

Posalji nam public SaveServerStats

[16:00:28] [debug] #1 006982a4 in public SaveServerStats () at C:\Users\ognje\Desktop\[BCRP] Balkan City Roleplay\Balkan City V.1.0.0\gamemodes\MW.pwn:32116
[16:00:28] [debug] #2 0066dfdc in public SyncTime () at C:\Users\ognje\Desktop\[BCRP] Balkan City Roleplay\Balkan City V.1.0.0\gamemodes\MW.pwn:29305

Pokaži liniju 32116 i 29305
Citat: CheezItFollow your heart and own style.
Citat: PottusThat is perfectly fine, I'm just pointing out where you made mistakes what does hearing "good job" get you? Absolutely nothing. You need to hear the problems otherwise you'll keep making the same mistakes :)

forward SaveServerStats( );
public SaveServerStats( ) {

    new _h_str[28];
	format(_h_str, sizeof(_h_str), "Ostalo/ServerStats.cfg" );

	if(fexist(_h_str)) {
		fremove(_h_str);
	}

	new File:_h_handler = fopen(_h_str, io_append), _s_str[256];

	format(_s_str, sizeof(_s_str), "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%s,%d,%d,%d,%d,%d\r\n", 
		ServerInfo[ RegistrovanihKorisnika ], 
		ServerInfo[ BanovanihKorisnika ], 
		ServerInfo[ KikovanihKorisnika ], 
		ServerInfo[ BrojWarnova ], 
		ServerInfo[ BrojPosetaServeru ], 
		ServerInfo[ HappyHours ], 
		ServerInfo[ PocetniLevel ], 
		ServerInfo[ PocetniNovaca ], 
		ServerInfo[ KupovinaVozila ], 
		ServerInfo[ Report ], 
		ServerInfo[ Pitanja ], 
		ServerInfo[ RekordServera ], 
		ServerInfo[ Oglasi ], 
		ServerInfo[ Registracija ], 
		ServerInfo[ ReactTime ], 
		ServerInfo[ ReactName ], 
		ServerInfo[ NovacBanka ], 
		ServerInfo[ Zlato ], 
		ServerInfo[ ZlatoRudar ],
		ServerInfo[ PrvaPomoc ],
		ServerInfo[ MehDelovi ]);
    fwrite(_h_handler, _s_str);