Y-Less / sscanf

SA:MP sscanf plugin originally made by @Y-Less
Other
122 stars 51 forks source link

Kick player from console will crash samp-server #19

Closed taktaz208 closed 6 years ago

taktaz208 commented 6 years ago

I just typed 'kick 2' then my samp-server crashed... CrashDetect log: Console input: kick 2 [21:34:41] Wanlke <#2 - 127.0.0.1> has been kicked. [21:34:41] [debug] Server crashed while executing asda.amx [21:34:41] [debug] AMX backtrace: [21:34:41] [debug] #0 native fclose () from samp-server.exe [21:34:41] [debug] #1 00007ae8 in ?? (62533464, 41237160, 62532420) from asda.amx [21:34:41] [debug] #2 00007c28 in ?? (62533464, 41237160, 0) from asda.amx [21:34:41] [debug] #3 00009a0c in ?? (62522628, 41237160, 0) from asda.amx [21:34:41] [debug] #4 000300dc in ?? (2) from asda.amx [21:34:41] [debug] #5 001a721c in public SSCANF_OnPlayerDisconnect (2, 16) from asda.amx [21:34:41] [debug] #6 00000ab0 in public OnPlayerDisconnect (2, 16) from asda.amx [21:34:41] [debug] #7 native fread () from samp-server.exe [21:34:41] [debug] #8 000084b4 in ?? (62535668, 62537772) from asda.amx [21:34:41] [debug] #9 00007b50 in ?? (62537772, 41237160, 62536728) from asda.amx [21:34:41] [debug] #10 00007c28 in ?? (62537772, 41237160, 0) from asda.amx [21:34:41] [debug] #11 00009a0c in ?? (62522528, 41237160, 0) from asda.amx [21:34:41] [debug] #12 000300dc in ?? (2) from asda.amx [21:34:41] [debug] #13 001a721c in public SSCANF_OnPlayerDisconnect (2, 2) from asda.amx [21:34:41] [debug] #14 00000ab0 in public OnPlayerDisconnect (2, 2) from asda.amx [21:34:41] [debug] Native backtrace: [21:34:41] [debug] #0 77832312 in ?? () from C:\Windows\SysWOW64\ntdll.dll [21:34:41] [debug] #1 00498bb8 in ?? () from samp-server.exe [21:34:41] [debug] #2 004991e0 in ?? () from samp-server.exe [21:34:41] [debug] #3 00404f14 in ?? () from samp-server.exe [21:34:41] [debug] #4 00405802 in ?? () from samp-server.exe

maddinat0r commented 6 years ago

This crash happened from your script, not the sscanf plugin. You seem to be calling fclose with an invalid file handler somewhere.

taktaz208 commented 6 years ago

True but i tested without sscanf and no problem happened