Quote:
Originally Posted by Nobi
|
https://atom.io/packages/build
The tutorial was basically using this package.
Open in Atom the project root (where the server03svr and all the gamemodes/filterscripts/scriptfiles folders are) and Create a file named
Inside that file input this
Code:
{
"cmd": "pawno\\pawncc.exe YOUR_SCRIPT_HERE.pwn -r -w=203 -;+ -(+ -v2 -d2 -i=pawno\\include",
"name": "SA:MP Build Script"
}
Basically what it does is executing a command that points to the Pawn compiler with the appropriate parameters, everything is relative to the config file.
Replace where I wrote "YOUR_SCRIPT_HERE" with the script you want to compile, if for example you have a script inside "gamemodes" folder that is called "mygamemode" the code above should look like this:
Code:
{
"cmd": "pawno\\pawncc.exe gamemodes\\mygamemode.pwn -r -w=203 -;+ -(+ -v2 -d2 -i=pawno\\include",
"name": "SA:MP Build Script"
}
Just remember that back slashes should come in pairs, because you're escaping here also for JSON when it reads the file, so the back slash will remain after you compile.
If you're running on Linux, then you should replace the back slash " \ " with " / "
Quote:
Originally Posted by rajabilal555
|
That he added more support to keywords than me and more contributed to his package, thus his package is richer than mine.