SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 29/06/2012, 07:32 AM   #1
wups
High-roller
 
wups's Avatar
 
Join Date: Apr 2010
Location: Lithuania
Posts: 1,352
Reputation: 131
Default [help] Debug info

Quote:
[10:34:53] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[10:34:53] [debug] Stack index (STK) is 0x61DF98, heap index (HEA) is 0x61F4A0
[10:34:53] [debug] AMX backtrace:
[10:34:53] [debug] #0 00384f1c in SaveCar (playerid=61) at GameMode.pwn:34225
This is a long mysql query, and line 34225 is the last part of it(the query is split into multiple format functions).
I don't know if it has anything to do with this:
pawn Code:
#pragma dynamic 15000
I have this at the end of my script.

P.S. I should note, that the query is 4048 cells.
wups is offline   Reply With Quote
Old 29/06/2012, 08:00 AM   #2
iggy1
High-roller
 
iggy1's Avatar
 
Join Date: Mar 2009
Location: Cloud 9
Posts: 2,296
Reputation: 223
Default Re: [help] Debug info

If i was you i'd split the query into two separate queries (halfing the size of the array), so you don't have to use "#pragma dynamic".

Or a not so good idea, make the array global.
__________________
If your thread title says REP+, a fairy dies!

Quote:
Originally Posted by Y_Less
That code compiles perfectly, but I can tell you now it won't make me a cup of tea.
Want to build a (non-commercial) game with awesome graphics? Try Cryengine 3.
iggy1 is offline   Reply With Quote
Old 29/06/2012, 12:32 PM   #3
wups
High-roller
 
wups's Avatar
 
Join Date: Apr 2010
Location: Lithuania
Posts: 1,352
Reputation: 131
Default Re: [help] Debug info

Quote:
Originally Posted by iggy1 View Post
If i was you i'd split the query into two separate queries (halfing the size of the array), so you don't have to use "#pragma dynamic".

Or a not so good idea, make the array global.
Why would you avoid pragma dynamic? I guess I'll just raise it's value.
wups 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
[Pickup] al comprar la casa || Pickup con info sin /info MultiPlayer Español/Spanish 10 01/04/2011 06:36 PM
Debug Labels - info for you Rainmaker Help Archive 7 08/11/2009 11:31 AM
Debug Ironboy500 Help Archive 1 23/08/2009 09:45 AM
SA:MP debug Black coyot General 1 04/04/2009 10:34 AM


All times are GMT. The time now is 01:27 AM.


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