02.09.2017, 13:33
Next to the .pwn file you compile.
I use a little advanced build system:
This way, you can compile main gamemode (it must be in gamemodes and name same as sublime project), or you can compile currently opened file with other variant
I use a little advanced build system:
pawn Код:
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${project_base_name}.pwn", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${project_path:${folder}}\\gamemodes",
"file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
"variants": [
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${project_base_name}.pwn", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${project_path:${folder}}\\filterscripts",
"name": "Filterscript"
},
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${file_path}",
"name": "Current file"
},
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-l", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${file_path}",
"name": "Current file preprocessed"
},
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-a", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${file_path}",
"name": "Current file pcode"
}
]
}