Weird problems
#1

So I had a problem with starting the server (It used to say that it can't find my GM). So I updated all the plugins and I'm still having problems. I downloaded the crashdetect and nativechecker plugins and here's what the log file says:

Код:
//Native checker
Filterscripts
---------------
  Loading filterscript 'DMCv2.amx'...
   Error: Function not registered: 'SSCANF_Init'
   Error: Function not registered: 'SSCANF_IsConnected'
   Error: Function not registered: 'SSCANF_Join'
   Error: Function not registered: 'SSCANF_Leave'
   Error: Function not registered: 'sscanf'

-----DarkLight_MaterialText_Creator-----
========================================
========================================
=======DMC v.2 By DarkLight Loaded======
========================================
========================================
----------------------------------------

   Error: Function not registered: 'SSCANF_Init'
   Error: Function not registered: 'SSCANF_IsConnected'
   Error: Function not registered: 'SSCANF_Join'
   Error: Function not registered: 'SSCANF_Leave'
   Error: Function not registered: 'DestroyDynamicCP'
   Error: Function not registered: 'CreateDynamicCP'
   Error: Function not registered: 'DestroyDynamicMapIcon'
   Error: Function not registered: 'CreateDynamicMapIcon'
   Error: Function not registered: 'Streamer_SetVisibleItems'
   Error: Function not registered: 'CreateDynamicObject'
   Error: Function not registered: 'SetDynamicObjectMaterialText'
   Error: Function not registered: 'CreateDynamic3DTextLabel'
   Error: Function not registered: 'CreateDynamicPickup'
   Error: Function not registered: 'SetDynamicObjectMaterial'
   Error: Function not registered: 'IsValidDynamicCP'
   Error: Function not registered: 'IsValidDynamicMapIcon'
   Error: Function not registered: 'sscanf'
   Error: Function not registered: 'PC_RegAlias'
   Error: Function not registered: 'DestroyDynamicPickup'
   Error: Function not registered: 'DestroyDynamic3DTextLabel'
   Error: Function not registered: 'IsValidDynamicObject'
   Error: Function not registered: 'DestroyDynamicObject'
   Error: Function not registered: 'GetDynamicObjectPos'
   Error: Function not registered: 'MoveDynamicObject'
   Error: Function not registered: 'UpdateDynamic3DTextLabelText'
   Error: Function not registered: 'Streamer_UpdateEx'
   Error: Function not registered: 'Streamer_Update'
   Error: Function not registered: 'AttachDynamicObjectToVehicle'

//Crash detect
   [debug] Run time error 4: "Array index out of bounds"
   [debug]  Attempted to read/write array element at index 65535 in array of size 2000
   [debug] AMX backtrace:
   [debug] #0 0003b8f0 in ?? (65535, 0, 0, 0, 0, 0, 0, 0, 0) in BalkanKingRP.amx
   [debug] #1 00217820 in ?? () in BalkanKingRP.amx
   [debug] #2 000456bc in public SSCANF_OnGameModeInit () in BalkanKingRP.amx
   [debug] #3 00030e30 in public ScriptInit_OnGameModeInit () in BalkanKingRP.amx
   [debug] #4 00000a84 in public OnPlayerRequestSpawn () in BalkanKingRP.amx
Can anybody help me?
Thanks in advanced.
Reply
#2

Update streamer and sscanf plugin and include?
Reply
#3

Quote:
Originally Posted by Heress
Посмотреть сообщение
Update streamer and sscanf plugin and include?
I already did.

Edit: My OS is Windows 10 Pro if it has anything to do with this because I started having problems after going from Windows 7 Pro to this one.

2. Edit:

This is how my includes look like (I thought it might help because samp servers are weird when it comes to includes):

Код:
#include <a_samp>
#undef MAX_PLAYERS
#define MAX_PLAYERS 300
//#include <fixes>
#include <a_players>
#include <crashdetect>
#include <YSI\y_iterate>
#include <YSI\y_timers>
#include <streamer>
#include <sscanf2>
#include <OnPlayerUseVending>
#include <fly>
//#include <mapandreas>
#include <strlib>
#include <Dini>
#include <PawnCMD>
#include <DialogCenter>

//Server cfg plugins line:
plugins crashdetect nativechecker streamer sscanf pawncmd
Reply
#4

This is what comes out using -d3 params in the compiler:

Код:
[debug] Run time error 4: "Array index out of bounds"
[debug]  Attempted to read/write array element at index 65535 in array of size 2000
[debug] AMX backtrace:
[debug] #0 000470ac in CreateVehicleEx (vehicletype=65535, Float:x=0.00000, Float:y=0.00000, Float:z=0.00000, Float:rotation=0.00000, color1=0, color2=0, respawn_delay=0, addsiren=0) at F:\Samp server\gamemodes\BK-RP.pwn:1138
[debug] #1 002a6dc8 in LoadVeh () at F:\Samp server\gamemodes\BK-RP.pwn:28189
[debug] #2 000535c4 in public SSCANF_OnGameModeInit () at F:\Samp server\gamemodes\BK-RP.pwn:2431
[debug] #3 0003a17c in public ScriptInit_OnGameModeInit ()  at F:\Samp server\pawno\include\sscanf2.inc:211
[debug] #4 00000bd4 in public OnPlayerRequestSpawn () at F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Internal\..\YSI_Server\y_scriptinit.inc:237
EDIT: I fixed it, there was a bugged out vehicle in my scriptfiles.
Reply
#5

Quote:
Originally Posted by andrejc999
Посмотреть сообщение
This is what comes out using -d3 params in the compiler:

Код:
[debug] Run time error 4: "Array index out of bounds"
[debug]  Attempted to read/write array element at index 65535 in array of size 2000
[debug] AMX backtrace:
[debug] #0 000470ac in CreateVehicleEx (vehicletype=65535, Float:x=0.00000, Float:y=0.00000, Float:z=0.00000, Float:rotation=0.00000, color1=0, color2=0, respawn_delay=0, addsiren=0) at F:\Samp server\gamemodes\BK-RP.pwn:1138
[debug] #1 002a6dc8 in LoadVeh () at F:\Samp server\gamemodes\BK-RP.pwn:28189
[debug] #2 000535c4 in public SSCANF_OnGameModeInit () at F:\Samp server\gamemodes\BK-RP.pwn:2431
[debug] #3 0003a17c in public ScriptInit_OnGameModeInit ()  at F:\Samp server\pawno\include\sscanf2.inc:211
[debug] #4 00000bd4 in public OnPlayerRequestSpawn () at F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Internal\..\YSI_Server\y_scriptinit.inc:237
EDIT: I fixed it, there was a bugged out vehicle in my scriptfiles.
You didn't fix it this has nothing to do with a "bugged out vehicle" that "bugged out vehicle" has everything to do with this script. Lack of array validity checking. Lack of saving validity checking.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)