You need to escape backslashes:
Код:
{
"cmd": ["pawncc.exe", "$file", "-o$file_path\\\\$file_base_name", "-;+", "-(+", "-d3"],
"file_regex": "(.*?)[(]([0-9]*)[)]",
"working_dir": "C:\\Users\\aflid\\Documents\\zserveur samp\\SQL\\pawno"
}
If you use sublime projects, you can use my build:
Код:
{
"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", "${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"
}
]
}
There's also Southclaw's great package:
https://github.com/Southclaw/pawn-sublime-language