Sublim Text - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Sublim Text (
/showthread.php?tid=614699)
Sublim Text -
Sirop - 11.08.2016
Hello and sorry for my bad English,
I have dowload sublim text 2 and i have dowload sublim text of pawn and i compiled my file
PHP код:
Error trying to parse build system: invalid escape in C:/Users/........./Sublime Text 2/Packages/User/PAWNO.sublime-build:4:17
Re: Sublim Text -
Misiur - 11.08.2016
shoe us that file (in sublime click Prefernces -> Browse packages), go into User and paste your PAWNO.sublime-build contents.
Re: Sublim Text -
Sirop - 11.08.2016
{
"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"
}
Re: Sublim Text -
FuNkYTheGreat - 11.08.2016
Maybe this will work .
PHP код:
{
"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"
}
Re: Sublim Text -
Misiur - 11.08.2016
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
Re: Sublim Text -
Sirop - 11.08.2016
Very thanks +rep