You can modify some interpreter options using #pragma. You may use default instead of true and false in order to reset the value to its default one.
- Default value:
false
You can toggle PawnScript debugging on or off.
#pragma:debug,false
#pragma:debug,true- Default value:
true
You can toggle PawnScript warning system on or off.
#pragma:warnings,false
#pragma:warnings,true- Default value:
true
You can toggle PawnScript hooking system on or off.
#pragma:hooking,false
#pragma:hooking,true- Default value:
\
Change the parsing escape character.
#pragma:ctrlchar,'*'- Default value:
false
Enable warnings when return reference isn't provided.
#pragma:reqref,true- Default value:
200
Sets the amount of usable cells in which entity data will be stored. Each entity in PawnScript symbolises one cell, for example, a variable occupies 1 cell and stores all its data inside.
#pragma:dynamic,default
//or
#pragma:dynamic,100; // Must be lower than the default value.Output:
Heap space 1204958948 bytes
Entity cells (each) 800 cells (reserved)
All entity cells 9600 cells (reserved)
Entity cells (each) 400 cells (modified)
All entity cells 4800 cells (modified)
Unused memory: 4800 cells
Total usage est. 1204968548 bytes
- or rather unmaintained. Don't use this.
- Default value:
false
By default, you aren't supposed to put spaces and extra characters in argument values, so your PawnScript code should look this in order to work properly:
system.rem,"Example code";
if.equ,1,1->while.equ,testvar,11->var::set.int,testvar,add?testvar:1&using::console.println,"This should be printed again!";Enabling allspc option with:
#pragma:allspc,true;Enables crazy syntax like this:
system . rem, "Example code" ;
if. equ, 1 , 1-> while.equ, testvar, 11 -> var::set . int , testvar,add?testvar:1 & using :: console. println("This should be printed again!" ) ;Which can be really buggy and can bring negative side-effects with it, such as for example wrong value reading. But the most important thing to note is that your code will slow down a lot. There are also high chances of such code getting somewhy ignored by the interpreter.