Printable View
Recycler, how do we export the scripts?
Do we just leave them in .cpp source files?
[scripts]
;comma seperated list of PAWN / C++ scripts, will be loaded in the given order
;scripts need to be located in the root
scripts=vaultscript.dll
Thank you Volumed.
Also Recycler, is there anyway to implement natives for PAWN as of now?
You have to compile C++ scripts with your C++11 compiler of choice into a dynamic-link / shared object file.
What do you mean with natives? If you mean functions declared with "native", no, that's not possible.
However, you can define new "natives" in a C++ script and use MakePublic to expose them to other scripts. In your PAWN scripts, you can then use CallPublic. This way you have almost the same effect.
A new example script:
https://www.vaultmp.com/showwiki.php?...ems+of+players
Another example script:
https://www.vaultmp.com/showwiki.php?...ion+of+players