Sublim Text
#1

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 systeminvalid escape in C:/Users/........./Sublime Text 2/Packages/User/PAWNO.sublime-build:4:17 
Reply
#2

shoe us that file (in sublime click Prefernces -> Browse packages), go into User and paste your PAWNO.sublime-build contents.
Reply
#3

{
"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"
}
Reply
#4

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"

Reply
#5

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
Reply
#6

Very thanks +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)