Using a non-constant expression as a constant expression?
#6

Setting the size of a string or array during runtime cannot be done by pawn, unless you use plugins or something that allows it.
Pawn needs to know the size of the strings/arrays during compiling. Variables can hold any value so they cannot be used to set the size.

Also resizing arrays after they have been declared isn't possible.

You have to make your string/array as large as you possibly ever need.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)