SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 07/08/2019, 12:14 PM   #1
Ponga
Big Clucker
 
Ponga's Avatar
 
Join Date: Oct 2017
Posts: 77
Reputation: 9
Default TEXTDRAWS AND MAPPINGS

Hello i already add a textdraws and createdynamicobject into ongamemodeinit and also removebuildingobject into onplayerconnect

But when i joined the server textdraws and mappings is not showing ingame

[08/08/2019 17:55:02] [debug] Run time error 4: "Array index out of bounds"
[08/08/2019 17:55:02] [debug] Accessing element at index 500 past array upper bound 499
[08/08/2019 17:55:02] [debug] AMX backtrace:
[08/08/2019 17:55:02] [debug] #0 00072d20 in ?? () from PLA.amx
[08/08/2019 17:55:02] [debug] #1 000f398c in ?? () from PLA.amx
[08/08/2019 17:55:02] [debug] #2 00110ccc in public SSCANF_OnGameModeInit () from PLA.amx
[08/08/2019 17:55:02] [debug] #3 native CallLocalFunction () [004743b0] from samp-server.exe
[08/08/2019 17:55:02] [debug] #4 00015c34 in public zcmd_OnGameModeInit () from PLA.amx
[08/08/2019 17:55:02] [debug] #5 native CallLocalFunction () [004743b0] from samp-server.exe
[08/08/2019 17:55:02] [debug] #6 00015594 in ?? () from PLA.amx
[08/08/2019 17:55:02] [debug] #7 0000ed34 in public Itter_OnGameModeInit () from PLA.amx
[08/08/2019 17:55:02] [debug] #8 native CallLocalFunction () [004743b0] from samp-server.exe
[08/08/2019 17:55:02] [debug] #9 000022c4 in ?? () from PLA.amx
[08/08/2019 17:55:02] [debug] #10 00001194 in public OnGameModeInit () from PLA.amx
what is the problem?
__________________

Last edited by Ponga; 08/08/2019 at 11:03 AM.
Ponga is offline   Reply With Quote
Old 07/08/2019, 12:52 PM   #2
Symon
Gangsta
 
Symon's Avatar
 
Join Date: Apr 2019
Location: Italy
Posts: 536
Reputation: 18
Default Re: TEXTDRAWS AND MAPPINGS

Are you using a streamer for objects?
__________________


Discord | Play Now | Website

Add your server to favourites and join our Discord.
Symon is offline   Reply With Quote
Old 07/08/2019, 12:54 PM   #3
Ponga
Big Clucker
 
Ponga's Avatar
 
Join Date: Oct 2017
Posts: 77
Reputation: 9
Default Re: TEXTDRAWS AND MAPPINGS

Quote:
Originally Posted by KeyOfKey View Post
Are you using a streamer for objects?
Yes i use streamer for objects
__________________
Ponga is offline   Reply With Quote
Old 08/08/2019, 11:14 AM   #4
Ponga
Big Clucker
 
Ponga's Avatar
 
Join Date: Oct 2017
Posts: 77
Reputation: 9
Default Re: TEXTDRAWS AND MAPPINGS

[08/08/2019 17:55:02] [debug] Run time error 4: "Array index out of bounds"
[08/08/2019 17:55:02] [debug] Accessing element at index 500 past array upper bound 499
[08/08/2019 17:55:02] [debug] AMX backtrace:
[08/08/2019 17:55:02] [debug] #0 00072d20 in ?? () from PLA.amx
[08/08/2019 17:55:02] [debug] #1 000f398c in ?? () from PLA.amx
[08/08/2019 17:55:02] [debug] #2 00110ccc in public SSCANF_OnGameModeInit () from PLA.amx
[08/08/2019 17:55:02] [debug] #3 native CallLocalFunction () [004743b0] from samp-server.exe
[08/08/2019 17:55:02] [debug] #4 00015c34 in public zcmd_OnGameModeInit () from PLA.amx
[08/08/2019 17:55:02] [debug] #5 native CallLocalFunction () [004743b0] from samp-server.exe
[08/08/2019 17:55:02] [debug] #6 00015594 in ?? () from PLA.amx
[08/08/2019 17:55:02] [debug] #7 0000ed34 in public Itter_OnGameModeInit () from PLA.amx
[08/08/2019 17:55:02] [debug] #8 native CallLocalFunction () [004743b0] from samp-server.exe
[08/08/2019 17:55:02] [debug] #9 000022c4 in ?? () from PLA.amx
[08/08/2019 17:55:02] [debug] #10 00001194 in public OnGameModeInit () from PLA.amx
__________________
Ponga is offline   Reply With Quote
Old 08/08/2019, 11:17 AM   #5
Mugala
High-roller
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,119
Reputation: 68
Default Re: TEXTDRAWS AND MAPPINGS

increase array size for that variable.
__________________
Coding in 8 languages including Pawn, C#, C++ and SQL.
Available for hiring.

If you have a coding question or need an assistance in a code, just PM me.
If you want me to create something for you, here is a Discord Mugala#5651

Currently helping Community members in a coding.
Mugala is offline   Reply With Quote
Old 08/08/2019, 11:24 AM   #6
Ponga
Big Clucker
 
Ponga's Avatar
 
Join Date: Oct 2017
Posts: 77
Reputation: 9
Default Re: TEXTDRAWS AND MAPPINGS

Quote:
Originally Posted by Mugala View Post
increase array size for that variable.
Where can i find the code?
__________________
Ponga is offline   Reply With Quote
Old 08/08/2019, 11:57 AM   #7
Mugala
High-roller
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,119
Reputation: 68
Default Re: TEXTDRAWS AND MAPPINGS

Quote:
Originally Posted by Ponga View Post
Where can i find the code?
it must be an array in ongamemodeinit, it'll be
new something[500];

just change that 500 into higher number.
__________________
Coding in 8 languages including Pawn, C#, C++ and SQL.
Available for hiring.

If you have a coding question or need an assistance in a code, just PM me.
If you want me to create something for you, here is a Discord Mugala#5651

Currently helping Community members in a coding.
Mugala is offline   Reply With Quote
Old 08/08/2019, 12:06 PM   #8
Ponga
Big Clucker
 
Ponga's Avatar
 
Join Date: Oct 2017
Posts: 77
Reputation: 9
Default Re: TEXTDRAWS AND MAPPINGS

There's no array on ongamemodeinit
__________________
Ponga is offline   Reply With Quote
Old 08/08/2019, 12:16 PM   #9
Mugala
High-roller
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,119
Reputation: 68
Default Re: TEXTDRAWS AND MAPPINGS

well, get remember than what you added last.
__________________
Coding in 8 languages including Pawn, C#, C++ and SQL.
Available for hiring.

If you have a coding question or need an assistance in a code, just PM me.
If you want me to create something for you, here is a Discord Mugala#5651

Currently helping Community members in a coding.
Mugala is offline   Reply With Quote
Old 08/08/2019, 12:21 PM   #10
Ponga
Big Clucker
 
Ponga's Avatar
 
Join Date: Oct 2017
Posts: 77
Reputation: 9
Default Re: TEXTDRAWS AND MAPPINGS

I was change the house pickup icon into housecheckpoint
__________________
Ponga 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
[Map] Few of my mappings, you`re welcome. iRXTS Maps 64 17/01/2017 10:12 PM
[Map] My mappings Yur Maps 3 20/07/2014 07:17 PM
Mappings not loading FlawPaw Server Support 5 16/11/2013 11:04 AM
Mappings RyanDam Server Support 1 15/02/2013 05:04 PM


All times are GMT. The time now is 04:25 AM.


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