Heap / Stack size ?
#1

Hey guys,

Im making a big RP script. Everything went good, but suddenly since today Im getting this strange thing:
Код:
Stack/heap size:   16384 bytes; estimated max. usage=5103 cells (20412 bytes)
Is it an error / warning ? or is it afflicting my script ?

Thanks,

Kind regards,
Rickyboy30
Reply
#2

Uh, were you using something like, string[999999]; lol

0.2X
String Length 256 characters
0.3a
String Length 1024 characters

Taken from https://sampwiki.blast.hk/wiki/Limits
Reply
#3

Im still using 256

Do I have to set it to the 0.3 one ?
Reply
#4

Quote:
Originally Posted by Rickyboy30
Im still using 256

Do I have to set it to the 0.3 one ?
You should change 256 down to 128.
Reply
#5

Okay, thanks I will try that
Reply
#6

That's because you've a bigger script,
You've probably this:

Example:
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:      12345 bytes
Code size:      12345 bytes
Data size:      12345 bytes
Stack/heap size:   12345 bytes; estimated max. usage=4321 cells (12345 bytes)
Total requirements:  54321 bytes
Reply
#7

Unless you're like me (who has that reporting turned on by default), the display of that means that the stack is too big, and you either have to increase with a #pragma, or reduce in code.
Reply
#8

Must I split it in 2 files? I can't make it littler.

And what's wrong with it? everything works isn't it?
Reply
#9

I maked string [12], But I still have to much, and if I do cmd[128] it says that it's to small (also by tmp and tmp2)

I think I have to make less cells... (how?)
Reply
#10

oh noes, Well when I changed it to 128 My whole house / business system went gone...

Glad I back-up the shit sometimes ^^
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)