Sublime
#21

umm..

in my case,
when i compiled with sublime,that .amx have changed.

maybe some parameter is wrong in Pawn.sublime-build i guess..? or build system wrong..
Reply
#22

Can you send me your sublime-build if you have them??
BUt with your parameters if that is not problem. I will just change it to mine
Reply
#23

sure,

this is my Pawn.sublime-build in Packages\User\
PHP код:
{
    
"cmd": ["${project_path:${folder}}/pawncc.exe""$file_name""-;+""-v2""-d3""-\\)+"],
    
"working_dir""${file_path}",
    
"file_regex""^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
    
"variants": [
        {
            
"cmd": ["${project_path:${folder}}/pawncc.exe""$file_name""-;+""-v2""-d3""-\\)+""-l"],
            
"working_dir""${file_path}",
            
"name""Preprocessed output"
        
},
        {
            
"cmd": ["${project_path:${folder}}/pawncc.exe""$file_name""-;+""-v2""-d3""-\\)+""-a"],
            
"working_dir""${file_path}",
            
"name""P-code output"
        
}
    ]

and, i'm set my Project Folder at pawno document.
Reply
#24

Did you change workin_dir and cmd: ??
Reply
#25

no, everything default

if you add Project Folder ,
than everything will be ok.

cause "working_dir" will load ${file_path} (where's pwn at)
${project_path:${folder}}/pawncc.exe will load Project Folder so like
Project Folder/pawncc.exe
Reply
#26

PHP код:
{
    
"cmd": ["pawncc.exe""-i includes""$file""-;+""-d3""-\\)+"],
    
"working_dir""C:\\Users\\Micko\\Desktop\\MySQL\\pawno",
    
"file_regex""^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
    
"variants": [
        {
            
"cmd": ["pawncc.exe""-i includes""$file",  "-;+""-d3""-\\)+""-l"],
            
"working_dir""C:\\Users\\Micko\\Desktop\\MySQL\\pawno",
            
"name""Preprocessed output"
        
},
        {
            
"cmd": ["pawncc.exe""-i includes""$file",  "-;+""-d3""-\\)+""-a"],
            
"working_dir""C:\\Users\\Micko\\Desktop\\MySQL\\pawno",
            
"name""P-code output"
        
}
    ]

I did it like that. It is compiled as it should be but it is not affecting .amx. Only .pwn. Should I add something somewhere or should I remove something??
I don't get where to put what.. I am sorry guys for this
Reply
#27

umm..

you might not change anything with these at Pawn.sublime-build:
PHP код:
{
    
"cmd": ["${project_path:${folder}}/pawncc.exe""$file_name""-;+""-v2""-d3""-\\)+"],
    
"working_dir""${file_path}",
    
"file_regex""^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
    
"variants": [
        {
            
"cmd": ["${project_path:${folder}}/pawncc.exe""$file_name""-;+""-v2""-d3""-\\)+""-l"],
            
"working_dir""${file_path}",
            
"name""Preprocessed output"
        
},
        {
            
"cmd": ["${project_path:${folder}}/pawncc.exe""$file_name""-;+""-v2""-d3""-\\)+""-a"],
            
"working_dir""${file_path}",
            
"name""P-code output"
        
}
    ]

and do -> Project -> Add Folder to Project -> select your pawno folder.

it might work good.

final check what build system do you use at Tool -> Build System

cause when you build, it will do like pawno,
compile that pwn and make amx in same document as i know..

but maybe im fault or x___x

buy the way , you can change or add compile options at , "-;+", "-v2", "-d3", "-\\)+", "-l"],
Reply
#28

Okay I got it working finally.. It is effecting .amx
Here is the full code for Pawn.sublime-build
PHP код:
{
    
"cmd": ["pawncc.exe""-d3 -r -i includes""$file""-;+"],
    
"path""C:\\Users\\Micko\\Desktop\\MySQL\\pawno"

AND THIS IS THE FULL CODE YOU NEED!! Nothing else!
Reply
#29

nice job!

do you using sublime 2 ;___;?
Reply
#30

3 xD
Reply
#31

Quote:
Originally Posted by Micko123
Посмотреть сообщение
3 xD
what happenedddddd

(X w X)/

but thank you, i learned something about it/
Reply
#32

Well you probably learned not to answer my posts xD

Thank you m8 for everything
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)