08.08.2011, 01:38
does anyone know what max length of a string is in pawn?
Uh oh, you should always use 128 over 256. I don't have an opinion on this, other than I've seen in some game-modes strings up to 5000, for things like files, etc. Obviously if you're using strings for things like textdraws there is a limit of 1024.
|
Originally Posted by pawncc.exe
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 88 bytes Code size: 196 bytes Data size: 44 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements: 16712 bytes |
Originally Posted by server_log.txt
Script[gamemodes/stack.amx]: Run time error 3: "Stack/heap collision (insufficient stack size)"
|
Global variables gets saved in the amx file => unlimited, or your harddrive memory
Local variables gets dynamicly allocated in the stack / heap memory block which is normally 16 kb big (4096 cells - heap information) Although you can increase this memory block with #pragma dynamic <cells> If its near the collision point of the stack and the heap this warning will appear If it rly collides than you will get this message if you execute your script |