SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 23/02/2017, 02:25 PM   #1
Wahyu33
Big Clucker
 
Join Date: Dec 2016
Location: Indonesia, Bogor, Jawabarat
Posts: 50
Reputation: 1
Default AMX backtrace

Code:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[22:15:11] filterscripts = ""  (string)
[22:15:11] 
[22:15:11] Server Plugins
[22:15:11] --------------
[22:15:11]  Loading plugin: mysql
[22:15:12]  >> plugin.mysql: R33 successfully loaded.
[22:15:12]   Loaded.
[22:15:12]  Loading plugin: streamer
[22:15:12]   Loaded.
[22:15:12]  Loading plugin: whirlpool
[22:15:12]  
[22:15:12]  ==================
[22:15:12]  
[22:15:12]   Whirlpool loaded
[22:15:12]  
[22:15:12]  ==================
[22:15:12]  
[22:15:12]   Loaded.
[22:15:12]  Loading plugin: nativechecker
[22:15:12]   Loaded.
[22:15:12]  Loading plugin: crashdetect
[22:15:12]   CrashDetect v4.12 is OK.
[22:15:12]   Loaded.
[22:15:12]  Loading plugin: sscanf
[22:15:12] 

[22:15:12]  ===============================

[22:15:12]       sscanf plugin loaded.     

[22:15:12]          Version:  2.8.2        

[22:15:12]    (c) 2012 Alex "******" Cole  

[22:15:12]  ===============================

[22:15:12]   Loaded.
[22:15:12]  Loaded 6 plugins.

[22:15:12] 
[22:15:12] Filterscripts
[22:15:12] ---------------
[22:15:12]   Loaded 0 filterscripts.

[22:15:14]    Error: Function not registered: 'SSCANF_Init'
[22:15:14]    Error: Function not registered: 'SSCANF_IsConnected'
[22:15:14]    Error: Function not registered: 'SSCANF_Join'
[22:15:14]    Error: Function not registered: 'SSCANF_Leave'
[22:15:14]    Error: Function not registered: 'sscanf'
[22:15:15]  
[22:15:15]  
[22:15:15]  
[22:15:15]  ======================================= 
[22:15:15]  |                                     | 
[22:15:15]  |        YSI version 3.09.0684        | 
[22:15:15]  |        By Alex "******" Cole        | 
[22:15:15]  |                                     | 
[22:15:15]  ======================================= 
[22:15:15]  
[22:15:15]  
[22:15:15]  
[22:15:15] Preparing the gamemode, please wait...
[22:15:15] [debug] Server crashed while executing GMRoleplay.amx
[22:15:15] [debug] AMX backtrace:
[22:15:15] [debug] #0 native fread () [00405770] from samp-server.exe
[22:15:15] [debug] #1 0037fa78 in ?? () from GMRoleplay.amx
[22:15:15] [debug] #2 00524c5c in ?? () from GMRoleplay.amx
[22:15:15] [debug] #3 0000cf80 in public Itter_OnGameModeInit () from GMRoleplay.amx
[22:15:15] [debug] #4 native CallLocalFunction () [004743b0] from samp-server.exe
[22:15:15] [debug] #5 0000819c in public ScriptInit_OnGameModeInit () from GMRoleplay.amx
[22:15:15] [debug] #6 00007120 in public SSCANF_OnGameModeInit () from GMRoleplay.amx
[22:15:15] [debug] #7 0000147c in public zcmd_OnGameModeInit () from GMRoleplay.amx
[22:15:15] [debug] #8 native CallLocalFunction () [004743b0] from samp-server.exe
[22:15:15] [debug] #9 00000c68 in public OnGameModeInit () from GMRoleplay.amx
[22:15:15] [debug] Native backtrace:
[22:15:15] [debug] #0 77db77b2 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[22:15:15] [debug] #1 00498bb8 in ?? () from C:\Users\Wahyu\Downloads\Compressed\samp037_svr_R2-1-1_win32\samp-server.exe
[22:15:15] [debug] #2 004991e0 in ?? () from C:\Users\Wahyu\Downloads\Compressed\samp037_svr_R2-1-1_win32\samp-server.exe
[22:15:15] [debug] #3 00404f14 in ?? () from C:\Users\Wahyu\Downloads\Compressed\samp037_svr_R2-1-1_win32\samp-server.exe
Wahyu33 is offline   Reply With Quote
Old 23/02/2017, 02:36 PM   #2
JesterlJoker
Huge Clucker
 
Join Date: Apr 2015
Location: Cagayan de Oro, Philippines
Posts: 280
Reputation: 31
Default Re: AMX backtrace

update your sscanf include
__________________

Testers are welcome just slide into my DM's.
JesterlJoker is offline   Reply With Quote
Old 23/02/2017, 02:37 PM   #3
X337
Gangsta
 
Join Date: Sep 2014
Location: Indonesia
Posts: 872
Reputation: 291
Default Re: AMX backtrace

fread() will crash the server if you try to read something from an invalid handle. You have to check whether the file you trying to read is exists / not an invalid handle or simply use sa-mp fixes include.
__________________
viva la sa-mp
X337 is offline   Reply With Quote
Old 23/02/2017, 02:48 PM   #4
Wahyu33
Big Clucker
 
Join Date: Dec 2016
Location: Indonesia, Bogor, Jawabarat
Posts: 50
Reputation: 1
Default Re: AMX backtrace

Quote:
Originally Posted by X337 View Post
fread() will crash the server if you try to read something from an invalid handle. You have to check whether the file you trying to read is exists / not an invalid handle or simply use sa-mp fixes include.
and how can I fix
Wahyu33 is offline   Reply With Quote
Old 23/02/2017, 02:52 PM   #5
Mencent
High-roller
 
Mencent's Avatar
 
Join Date: Mar 2015
Location: Lower Saxony (Niedersachsen)
Posts: 1,311
Reputation: 92
Default Re: AMX backtrace

You can check which file doesn't exist and fix this or you send us the right code so that we can help you.
__________________
Best wishes,
Mencent

(Sorry for my bad english, I hope you can understand this!)
Mencent is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AMX backtrace Wahyu33 Scripting Help 9 10/02/2017 12:10 PM
Amx Backtrace TaylorShade Scripting Help 7 05/07/2016 02:27 PM
AMX backtrace Youssef221 Scripting Help 1 13/11/2014 04:57 PM
AMX backtrace SoNikMells Русский/Russian 7 24/09/2014 10:23 PM


All times are GMT. The time now is 04:57 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.