Raised This Month: $ Target: $400
 0% 

Stack Error?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Minimum
Senior Member
Join Date: Jun 2006
Old 01-13-2007 , 17:06   Stack Error?
Reply With Quote #1

I am getting this strange stack error. I don't know why this happens but it just happens. It spams up the server console and prevents the function from fully executing. I have isolated it to be sqlrows[65][128]. How would I fix this?

Code:
new authid[32], num, players[32], calc, sqlrows[65][128], sqlrowsint[65], calc2, calc3, rows[64], rownum
Minimum is offline
Send a message via AIM to Minimum Send a message via MSN to Minimum
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 01-13-2007 , 17:17   Re: Stack Error?
Reply With Quote #2

Although it is not recommended, you can place this line at the top of the plugin to increase the memory size.

This doubles it I think:
#pragma dynamic 32768

Should work though. Just be careful because usually once this happens it means your plugin is on the verge of becoming laggy.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 01-13-2007 , 17:53   Re: Stack Error?
Reply With Quote #3

sqlrows[65][128] seems very unreasonable.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Minimum
Senior Member
Join Date: Jun 2006
Old 01-13-2007 , 18:59   Re: Stack Error?
Reply With Quote #4

There are only two other ways of doing this. Having 65 string variables or 64 more sql queries. This is the most reasonable way.
Minimum is offline
Send a message via AIM to Minimum Send a message via MSN to Minimum
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 01-13-2007 , 19:10   Re: Stack Error?
Reply With Quote #5

Quote:
Originally Posted by Minimum View Post
There are only two other ways of doing this. Having 65 string variables or 64 more sql queries. This is the most reasonable way.
I wouldn't say that is the ONLY way to do what you are trying to achieve, for there are always alternatives.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-13-2007 , 19:48   Re: Stack Error?
Reply With Quote #6

Code:
static sqlrows[65][128]
[ --<-@ ] Black Rose is offline
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

Forum Jump


All times are GMT -4. The time now is 22:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode