[debug] Server crashed while executing truck.amx
#1

[10:48:24] [debug] Server crashed while executing truck.amx
[10:48:24] [debug] AMX backtrace:
[10:48:24] [debug] #0 native fread () from samp-server.exe
[10:48:24] [debug] #1 000416a4 in ?? () from truck.amx
[10:48:24] [debug] #2 0001bdbc in ?? () from truck.amx
[10:48:24] [debug] #3 0007467c in public FC_OnGameModeInit () from truck.amx
[10:48:24] [debug] #4 native CallLocalFunction () from samp-server.exe
[10:48:24] [debug] #5 00018060 in public Itter_OnGameModeInit () from truck.amx
[10:48:24] [debug] #6 native CallLocalFunction () from samp-server.exe
[10:48:24] [debug] #7 00011f00 in public ScriptInit_OnGameModeInit () from truck.amx
[10:48:24] [debug] #8 00010ee8 in public SSCANF_OnGameModeInit () from truck.amx
[10:48:24] [debug] #9 00001468 in public zcmd_OnGameModeInit () from truck.amx
[10:48:24] [debug] #10 native CallLocalFunction () from samp-server.exe
[10:48:24] [debug] #11 000006fc in public OnGameModeInit () from truck.amx
[10:48:25] [debug] Native backtrace:
[10:48:25] [debug] #0 76eb22c2 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[10:48:25] [debug] #1 00498bb8 in ?? () from samp-server.exe
[10:48:25] [debug] #2 004991e0 in ?? () from samp-server.exe
[10:48:25] [debug] #3 00404f14 in ?? () from samp-server.exe
Reply
#2

post OnGameModeInit here
Reply
#3

What line do I send?
Reply
#4

Quote:
Originally Posted by lucas0129
View Post
What line do I send?
all it
Reply
#5

Quote:
Originally Posted by lucas0129
View Post
What line do I send?
None, because it is not from OnGameModeInit directly. Compile with debug info to get functions' name and exact line.

About the reason of the crash, check the warning box: https://sampwiki.blast.hk/wiki/Fread
There are also two examples that show how it should be used correctly (checking if file opened) to prevent the crash.
Reply
#6

Quote:
Originally Posted by Konstantinos
View Post
None, because it is not from OnGameModeInit directly. Compile with debug info to get functions' name and exact line.

About the reason of the crash, check the warning box: https://sampwiki.blast.hk/wiki/Fread
There are also two examples that show how it should be used correctly (checking if file opened) to prevent the crash.
if he post the OnGamemodeInit then we can edit the broken also @lucas0129 check directory for text or ini files if exists if not create it and re-try
Reply
#7

public OnGameModeInit()
{
PortaoExSF = CreateDynamicObject(980, -1531.3978271484, 482.25979614258, 8.9530792236328, 0, 0, 359.9997558593;
portaoexercito = CreateDynamicObject(3095, 214.04198, 1875.08801, 11.78340, 0.00000, 90.00000, 90.11101);
portaoexercito2 = CreateDynamicObject(5422, 96.79881, 1920.85046, 19.14695, 0.00000, 0.00000, 0.00000); // entrada pela frente
portaoexercito3 = CreateDynamicObject(3095, 70.31149, 1818.79272, 27.88861, 0.00000, 90.64000, 179.49922); // rampa para carros
CreateDynamicObject(5822, -1311.8383789063, 484.17300415039, 12.087057113647, 0.00000, 0.00000, 92.85986328125);//Exercito Escada
CreateDynamicObject(2922, 96.68641, 1918.55676, 18.76052, 0.00000, 0.00000, 267.06409); //botгo pra entrar
CreateDynamicObject(2922, 96.68218, 1923.04626, 18.75073, 0.00000, 0.00000, 89.36685); //botгo pra entrar
helibase = AddStaticVehicle(487,227.3833000,1909.5813000,18.1 735000,0.0000000,235,234); //Maverick

new objetobaseheli = CreateObject(3280,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(objetobaseheli, helibase, -1.875000,2.475000,-1.125000,0.000000,0.000000,0.000000);

// :
new objetobaseheli2 = CreateObject(3280,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(objetobaseheli2, helibase, -1.875000,0.899999,-1.125000,0.000000,0.000000,0.000000);

// :
new objetobaseheli3 = CreateObject(3280,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(objetobaseheli3, helibase, -1.875000,-0.674999,-1.125000,0.000000,0.000000,0.000000);

//radar
for(new i = 0; i < MAX_PLAYERS; ++i)
{
gPlayerMarker[i] = INVALID_OBJECT_ID;
}
Reply
#8

Quote:
Originally Posted by lucas0129
View Post
public OnGameModeInit()
{
PortaoExSF = CreateDynamicObject(980, -1531.3978271484, 482.25979614258, 8.9530792236328, 0, 0, 359.9997558593;
portaoexercito = CreateDynamicObject(3095, 214.04198, 1875.08801, 11.78340, 0.00000, 90.00000, 90.11101);
portaoexercito2 = CreateDynamicObject(5422, 96.79881, 1920.85046, 19.14695, 0.00000, 0.00000, 0.00000); // entrada pela frente
portaoexercito3 = CreateDynamicObject(3095, 70.31149, 1818.79272, 27.88861, 0.00000, 90.64000, 179.49922); // rampa para carros
CreateDynamicObject(5822, -1311.8383789063, 484.17300415039, 12.087057113647, 0.00000, 0.00000, 92.85986328125);//Exercito Escada
CreateDynamicObject(2922, 96.68641, 1918.55676, 18.76052, 0.00000, 0.00000, 267.06409); //botгo pra entrar
CreateDynamicObject(2922, 96.68218, 1923.04626, 18.75073, 0.00000, 0.00000, 89.36685); //botгo pra entrar
helibase = AddStaticVehicle(487,227.3833000,1909.5813000,18.1 735000,0.0000000,235,234); //Maverick

new objetobaseheli = CreateObject(3280,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(objetobaseheli, helibase, -1.875000,2.475000,-1.125000,0.000000,0.000000,0.000000);

// :
new objetobaseheli2 = CreateObject(3280,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(objetobaseheli2, helibase, -1.875000,0.899999,-1.125000,0.000000,0.000000,0.000000);

// :
new objetobaseheli3 = CreateObject(3280,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(objetobaseheli3, helibase, -1.875000,-0.674999,-1.125000,0.000000,0.000000,0.000000);

//radar
for(new i = 0; i < MAX_PLAYERS; ++i)
{
gPlayerMarker[i] = INVALID_OBJECT_ID;
}
use pastbin.com and Post ALL Callback (OnGamemodeinit)
Reply
#9

Compile the script in -d3 mode and check log again to get more precise information as it is pretty clear that the problem is not from Gamemodeint.
https://github.com/Zeex/samp-plugin-...ith-debug-info
Reply
#10

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[14:02:43]
[14:02:43] Server Plugins
[14:02:43] --------------
[14:02:43] Loading plugin: crashdetect
[14:02:43] CrashDetect v4.17 is OK.
[14:02:43] Loaded.
[14:02:43] Loading plugin: sscanf
[14:02:43]

[14:02:43] ===============================

[14:02:43] sscanf plugin loaded.

[14:02:43] Version: 2.8.1

[14:02:43] © 2012 Alex "Y_Less" Cole

[14:02:43] ===============================

[14:02:43] Loaded.
[14:02:43] Loading plugin: streamer
[14:02:43]

*** Streamer Plugin v2.7.4 by Incognito loaded ***

[14:02:43] Loaded.
[14:02:43] Loaded 3 plugins.

[14:02:43]
[14:02:43] Filterscripts
[14:02:43] ---------------
[14:02:43] Loading filterscript 'Elevador.amx'...
[14:02:45]

[14:02:45] |---------------------------------------------------
[14:02:45] |--- LS BeachSide Filterscript
[14:02:45] |-- Script v1.03
[14:02:45] |-- 19th April 2015
[14:02:45] |---------------------------------------------------
[14:02:45] |-- LS BeachSide Building Elevator created
[14:02:45] |---------------------------------------------------
[14:02:45] Loading filterscript 'InteriorShamal.amx'...
[14:02:45] ---------------------------------------
[14:02:45] Loaded 'Entering shamal as passenger'
[14:02:45] v3.01 by BeckzyBoi. (27/04/2014)
[14:02:45] ---------------------------------------
[14:02:45] Loading filterscript 'Objetos.amx'...
[14:02:45] Carregando objetos...
[14:02:46] Objetos carregados!
[14:02:46] Loading filterscript 'visual.amx'...
[14:02:46] Loading filterscript 'draw.amx'...
[14:02:46]
[14:02:46]
[14:02:46]
[14:02:46] =======================================
[14:02:46] | |
[14:02:46] | YSI version 3.09.0684 |
[14:02:46] | By Alex "Y_Less" Cole |
[14:02:46] | |
[14:02:46] =======================================
[14:02:46]
[14:02:46] Loaded 5 filterscripts.

[14:02:46]
[14:02:46]
[14:02:46]
[14:02:46] =======================================
[14:02:46] | |
[14:02:46] | YSI version 3.09.0684 |
[14:02:46] | By Alex "Y_Less" Cole |
[14:02:46] | |
[14:02:46] =======================================
[14:02:46]
[14:02:49] [debug] Server crashed while executing truck.amx
[14:02:49] [debug] AMX backtrace:
[14:02:49] [debug] #0 native fread () from samp-server.exe
[14:02:49] [debug] #1 000416b8 in ?? () from truck.amx
[14:02:49] [debug] #2 0001bdbc in ?? () from truck.amx
[14:02:49] [debug] #3 00074690 in public FC_OnGameModeInit () from truck.amx
[14:02:49] [debug] #4 native CallLocalFunction () from samp-server.exe
[14:02:49] [debug] #5 00018060 in public Itter_OnGameModeInit () from truck.amx
[14:02:49] [debug] #6 native CallLocalFunction () from samp-server.exe
[14:02:49] [debug] #7 00011f00 in public ScriptInit_OnGameModeInit () from truck.amx
[14:02:49] [debug] #8 00010ee8 in public SSCANF_OnGameModeInit () from truck.amx
[14:02:49] [debug] #9 00001468 in public zcmd_OnGameModeInit () from truck.amx
[14:02:49] [debug] #10 native CallLocalFunction () from samp-server.exe
[14:02:49] [debug] #11 000006fc in public OnGameModeInit () from truck.amx
[14:02:50] [debug] Native backtrace:
[14:02:50] [debug] #0 76eb22c2 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[14:02:50] [debug] #1 00498bb8 in ?? () from samp-server.exe
[14:02:50] [debug] #2 004991e0 in ?? () from samp-server.exe
[14:02:50] [debug] #3 00404f14 in ?? () from samp-server.exe
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)