|
|
#1 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Oct 2010
Posts: 310
Reputation: 0
|
Why Does This Line:
pawn Code:
pawn Code:
|
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2010
Location: The Netherlands
Posts: 1,490
Reputation: 120
|
Honestly, I don't really know why. But most of the times your strings are too big. Then you are getting that: Header size: etc.
You need to increase them. That's also making your gamemode faster. |
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2009
Location: Sofia, Bulgaria
Posts: 2,410
Reputation: 106
|
Your string cells are too big, optimize them a little!
|
|
|
|
|
|
#4 |
|
Guest
Posts: n/a
|
As far as I know, the pragma dynamic directive defines how much dynamic memory will get allocated.
I suppose it's in bytes... But I'm not sure at all. |
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2009
Location: in a cement block
Posts: 1,885
Reputation: 238
|
you maybe got some long, or deep nested routines like
Code:
switch(condition)
{
case 0:{}
case 1:{}
case 2:{}
//...
case 30:{}
}
functions calling other functions a lot, cause the stack growing up - this data to "return to", needs to be stored in a return-table. you can avoid warnings about a too large heap/stack size by using the -S parameter in the pawn compiler command line. mostly, the compiler options are looking Code:
-r Code:
-r -S16384 |
|
|
|
|
|
#6 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Dec 2009
Posts: 926
Reputation: 97
|
Code:
#pragma dynamic value Sets the size, in cells, of the memory block for dynamic data (the stack and the heap) to the value specified by the expression. The default size of the dynamic data block is implementation defined. An implementation may also choose to grow the block on an as-needed basis (see the host program’s documentation, or the “Implementor’s Guide” for details). |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| compiler help | yarrum3 | Help Archive | 3 | 08/11/2010 06:18 AM |
| [Pawno Compiler] Unable to Execute the Compiler | Fabio11 | Client Support | 6 | 26/09/2010 09:37 PM |
| Compiler | ToPhrESH | Help Archive | 20 | 12/07/2010 09:53 PM |
| I need a compiler | legend_extric | Client Support | 1 | 04/03/2010 07:25 PM |
| Compiler | ScottCFR | Help Archive | 8 | 22/12/2009 05:13 AM |