Deo skripte:
//modules/admin/logs
stock LogConnects(string[])
{
new
entry,
month,
day,
year;
getdate(year, month, day);
format(entry, sizeof(entry), "\n[%02d/%02d/%d] %s", day, month, year, string);
new File:hFile;
hFile = fopen("/logfiles/connects.txt", io_append);
fclose(hFile);
}
// modules/player/saveload
LogConnects(log);
format(log, 128, "UPDATE `accounts` SET `online` = '1' WHERE `sqlid` = '%d'", PlayerInfo[ playerid ][ pSQLID ]);
mysql_tquery(1, log, ""); Debug iz server_log:
[21/08/2021 18:09:16] Server crashed while executing coarp.amx
[21/08/2021 18:09:16] AMX backtrace:
[21/08/2021 18:09:16] #0 native fwrite () from samp-server.exe
[21/08/2021 18:09:16] #1 0048a24c in LogConnects (string[]=@03e16b44 "Santino_Gotti(192.168.8.104) se uspjesno konektirao na server.") at modules/Admin/Logs.pwn:488
[21/08/2021 18:09:16] #2 0088a564 in public CheckPlayerLoginInput (playerid=0, ccinc=1) at modules/Player/SaveLoad.pwn:575
[21/08/2021 18:09:16] Native backtrace:
[21/08/2021 18:09:16] #0 76eefee5 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[21/08/2021 18:09:16] #1 0049f478 in ?? () from samp-server.exe
[21/08/2021 18:09:16] #2 0040531e in ?? () from samp-server.exe