#pragma dynamic
#1

Hi, how to use #pragma dynamic in our script if pawncc tell us it need it ?

EDIT: I misasked the question, what the number corresponds to ?
Reply
#2

Just place it in your script under all of the "#include <...>" things.
Reply
#3

Put at the very top of the script:
pawn Code:
#pragma dynamic 10000
Or a greater value, if 10000 is not enough. For ex. 15000
Reply
#4

I misasked the question, what the number corresponds to ?
Reply
#5

The number corresponds to the size of the stack and the heap in cells. In short (as I understand) it's the amount of memory you need for your script
Reply
#6

And what happens if we don't use it ? Like in PEN1 ?
Reply
#7

I had some random problems throughout the script when I haven't used it, but I needed to. Files weren't read e.t.c.
Reply
#8

Ok thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)