AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Stack Error? (https://forums.alliedmods.net/showthread.php?t=49821)

Minimum 01-13-2007 17:06

Stack Error?
 
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

mysticssjgoku4 01-13-2007 17:17

Re: Stack Error?
 
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.

Emp` 01-13-2007 17:53

Re: Stack Error?
 
sqlrows[65][128] seems very unreasonable.

Minimum 01-13-2007 18:59

Re: Stack Error?
 
There are only two other ways of doing this. Having 65 string variables or 64 more sql queries. This is the most reasonable way.

mysticssjgoku4 01-13-2007 19:10

Re: Stack Error?
 
Quote:

Originally Posted by Minimum (Post 426843)
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.

[ --<-@ ] Black Rose 01-13-2007 19:48

Re: Stack Error?
 
Code:
static sqlrows[65][128]


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

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