SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 13/02/2020, 06:29 PM   #1
Eyex
Little Clucker
 
Join Date: May 2019
Posts: 16
Reputation: 0
Default Debug i dont know what is this?!

Code:
20:27:54] - Alap Kocsik Betöltve!
[20:27:54] - Szolgálati járművek megtankolva!
[20:27:54] Kapuk betöltve!
[20:27:54] Összes interior sikeresen betöltve!
[20:27:54] - 3D Textek Betöltve!
[20:27:54] - Házak Betöltve!
[20:27:54] - Járművek Megtankolva!
[20:27:54] Város Kassza Tartalma: 1778
[20:27:54] - Kasszák betöltve!
[20:27:54] - Textdrawok Létrehozva!
[20:27:54] [debug] Run time error 4: "Array index out of bounds"
[20:27:54] [debug]  Accessing element at index 65535 past array upper bound 1999
[20:27:54] [debug] AMX backtrace:
[20:27:54] [debug] #0 001badc8 in ?? (0x0000ffff) from nevadarpgv4.amx
[20:27:54] [debug] #1 00023da0 in public RL_OnGameModeInit () from nevadarpgv4.amx
[20:27:54] [debug] #2 native CallLocalFunction () [004743b0] from samp-server.exe
[20:27:54] [debug] #3 0000a168 in public VehicleDriver_OnGameModeInit () from nevadarpgv4.amx
[20:27:54] [debug] #4 native CallLocalFunction () [004743b0] from samp-server.exe
[20:27:54] [debug] #5 00003d50 in public Itter_OnGameModeInit () from nevadarpgv4.amx
[20:27:54] [debug] #6 native CallLocalFunction () [004743b0] from samp-server.exe
[20:27:54] [debug] #7 000032c8 in public OPVD_OnGameModeInit () from nevadarpgv4.amx
[20:27:54] [debug] #8 native CallLocalFunction () [004743b0] from samp-server.exe
[20:27:54] [debug] #9 00002b8c in public zcmd_OnGameModeInit () from nevadarpgv4.amx
[20:27:54] [debug] #10 native CallLocalFunction () [004743b0] from samp-server.exe
[20:27:54] [debug] #11 00000f20 in public SSCANF_OnGameModeInit () from nevadarpgv4.amx
[20:27:54] [debug] #12 native CallLocalFunction () [004743b0] from samp-server.exe
[20:27:54] [debug] #13 00000bdc in public OnGameModeInit () from nevadarpgv4.amx
[20:27:54] Number of vehicle models: 57
This warning not error please everyone help! This bug or what?
Eyex is offline   Reply With Quote
Old 13/02/2020, 06:39 PM   #2
Symon
Gangsta
 
Symon's Avatar
 
Join Date: Apr 2019
Location: Italy
Posts: 864
Reputation: 68
Default Re: Debug i dont know what is this?!

"Accessing element at index 65535".

65535 is referred to INVALID_PLAYER_ID value.

Care to post OnGameModeInit code?
__________________

Join The Server (play.symonscnr.com) | Discord | Website/Forum
Choose up from 5 different skills, Con Artist, Drug Dealer, Firefighter, Hitman and Terrorist.
Play as a Civilian or a LEO, bomb buildings/vehicles, rob shops or bank and many many more. Join us!
Symon is offline   Reply With Quote
Old 13/02/2020, 06:42 PM   #3
Eyex
Little Clucker
 
Join Date: May 2019
Posts: 16
Reputation: 0
Default Re: Debug i dont know what is this?!

I'm sorry I'm a novice scripter. I don't know where the bad source code is in gamemode init. Is there a way I can find it somehow?
Eyex is offline   Reply With Quote
Old 13/02/2020, 07:18 PM   #4
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,228
Reputation: 205
Default Re: Debug i dont know what is this?!

Since the upper bound is 1999, it is related to vehicles.

Quote:
Originally Posted by Eyex View Post
Is there a way I can find it somehow?
Yes. Compiling with debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info
After recompiling the script and restarting the server, it will print the exact line next time it happens.
__________________
Calisthenics is offline   Reply With Quote
Old 13/02/2020, 07:23 PM   #5
Symon
Gangsta
 
Symon's Avatar
 
Join Date: Apr 2019
Location: Italy
Posts: 864
Reputation: 68
Default Re: Debug i dont know what is this?!

Open Pawno, press CTRL + F (Or Edit >> Find), type OnGameModeInit and press ENTER. Copy whole callback and post it here using [pawn] tag.

EDIT: Oh, i thought you were referring at OnGameModeInit.
__________________

Join The Server (play.symonscnr.com) | Discord | Website/Forum
Choose up from 5 different skills, Con Artist, Drug Dealer, Firefighter, Hitman and Terrorist.
Play as a Civilian or a LEO, bomb buildings/vehicles, rob shops or bank and many many more. Join us!
Symon 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
[12:02:57] [debug] Run time error 4: "Array index out of bounds" [12:02:57] [debug] Attempted to read/write array eleme sonn51280 Scripting Help 5 13/07/2019 01:08 PM
Dialog isnt showing, debug shows where, but I dont get it.. niels44 Scripting Help 0 17/12/2013 09:55 AM
if u dont login u get kicked dont work thefatshizms Scripting Help 6 17/06/2012 04:38 PM
[READ] Dont help people if you dont know what you are doing!!!! lolumadd Help Archive 4 11/04/2010 06:49 PM
My bizz dont shown on map and dont exit in game :s buonggiorno Help Archive 4 20/12/2009 01:44 PM


All times are GMT. The time now is 10:45 PM.


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