[Tool/Web/Other] Pawn Syntax for Atom
#25

Quote:
Originally Posted by Nobi
View Post
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
Code:
.atom-build.json
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
View Post
That he added more support to keywords than me and more contributed to his package, thus his package is richer than mine.
Reply


Messages In This Thread
Pawn Syntax for Atom - by Kaperstone - 07.12.2014, 12:34
Re: Pawn Syntax for Atom - by xeeZ - 07.12.2014, 14:13
Re: Pawn Syntax for Atom - by Kaperstone - 07.12.2014, 14:41
Re: Pawn Syntax for Atom - by Lordzy - 07.12.2014, 14:59
Re: Pawn Syntax for Atom - by Kaperstone - 08.12.2014, 18:21
Re: Pawn Syntax for Atom - by Adejair_Junior - 10.12.2014, 23:24
Re: Pawn Syntax for Atom - by Kaperstone - 11.12.2014, 00:27
Re: Pawn Syntax for Atom - by awsomedude - 11.12.2014, 01:44
Re: Pawn Syntax for Atom - by Glossy42O - 15.12.2014, 13:32
Re: Pawn Syntax for Atom - by Programie - 21.12.2014, 18:46
Re: Pawn Syntax for Atom - by Kaperstone - 23.12.2014, 11:28
Re: Pawn Syntax for Atom - by Phyzic - 27.12.2014, 13:33
Re: Pawn Syntax for Atom - by Kaperstone - 27.12.2014, 13:45
Re: Pawn Syntax for Atom - by xeeZ - 07.01.2015, 14:32
Re: Pawn Syntax for Atom - by Kaperstone - 14.01.2015, 12:20
Re: Pawn Syntax for Atom - by xeeZ - 09.04.2015, 13:21
Re: Pawn Syntax for Atom - by Sanady - 23.04.2016, 09:18
Re: Pawn Syntax for Atom - by vannesenn - 24.05.2016, 16:42
Re: Pawn Syntax for Atom - by JasperM - 24.05.2016, 17:10
Re: Pawn Syntax for Atom - by Touati - 24.05.2016, 20:35
Re: Pawn Syntax for Atom - by rajabilal555 - 02.02.2017, 08:57
Re: Pawn Syntax for Atom - by renatog - 02.02.2017, 12:56
Re: Pawn Syntax for Atom - by oSAINTo - 10.07.2017, 23:28
Re: Pawn Syntax for Atom - by Nobi - 29.05.2018, 09:14
Re: Pawn Syntax for Atom - by Kaperstone - 29.05.2018, 10:37
Re: Pawn Syntax for Atom - by harsimarriar96 - 15.06.2018, 08:43
Re: Pawn Syntax for Atom - by Banditul18 - 15.06.2018, 08:50
Re: Pawn Syntax for Atom - by nikotragedy - 30.11.2018, 00:20

Forum Jump:


Users browsing this thread: 1 Guest(s)