Problem(error/warning): Server crashuje cime se ulogiram na akaunt to jest cim napisem sifru i enter i pise ono Dobrodosli i sve to ali server se odma ugasi i ne ucita karaktera
Deo skripte: [pawn]//modules/admin/logs
stock LogConnects(string[])
{
new
entry[256],
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, "");[/pawn]
Debug iz server_log:
[21/08/2021 18:09:16] [debug] Server crashed while executing coarp.amx
[21/08/2021 18:09:16] [debug] AMX backtrace:
[21/08/2021 18:09:16] [debug] #0 native fwrite () from samp-server.exe
[21/08/2021 18:09:16] [debug] #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] [debug] #2 0088a564 in public CheckPlayerLoginInput (playerid=0, ccinc=1) at modules/Player/SaveLoad.pwn:575
[21/08/2021 18:09:16] [debug] Native backtrace:
[21/08/2021 18:09:16] [debug] #0 76eefee5 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[21/08/2021 18:09:16] [debug] #1 0049f478 in ?? () from samp-server.exe
[21/08/2021 18:09:16] [debug] #2 0040531e in ?? () from samp-server.exe
jel ti postoji folder logfiles
Hvala na odgovoru burazeru
Sve sam fixao nekako ne znam ni ja kako