SA-MP Forums Archive
[Tutorial] PAWN for SA-MP in Sublime Text 3 - 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] PAWN for SA-MP in Sublime Text 3 (/showthread.php?tid=626423)

Pages: 1 2 3 4


Re: PAWN for SA-MP in Sublime Text 3 - DeStRoY232 - 24.08.2017

i made bug script bec i wanna test if it compile it or not. it's not compiling but how i can see what's wrong with the script like in pawno? it's showing me this




Re: PAWN for SA-MP in Sublime Text 3 - Logic_ - 26.08.2017

I can't get the build part even though this is my third time setting Sublime Text up


Re: PAWN for SA-MP in Sublime Text 3 - Misiur - 26.08.2017

What exactly is happening? The build window does not pop up? Nothing is printed there? More details please


Re: PAWN for SA-MP in Sublime Text 3 - DeStRoY232 - 26.08.2017

Quote:
Originally Posted by DeStRoY232
View Post
i made bug script bec i wanna test if it compile it or not. it's not compiling but how i can see what's wrong with the script like in pawno? it's showing me this

anyone


Re: PAWN for SA-MP in Sublime Text 3 - Misiur - 26.08.2017

Scroll up, as you can see it says 3 errors.


Re: PAWN for SA-MP in Sublime Text 3 - Logic_ - 27.08.2017

Quote:
Originally Posted by PeanutButter
View Post
Installing the compiler
  1. Go to Tools>Build System>New Build System
  2. Replace the code with this code:
    Code:
    {
    	"cmd": ["pawncc.exe", "-i includes", "$file", "-;+"],
    	"path": "C:/path/to/pawno/folder"
    }
  3. You have to change the path to the folder containing pawncc.exe (e.g. "C:/Users/Name/Desktop/MyServer/pawno"), make sure the slashes from your path are / and not \.
  4. Save the file (remember the name) and close the tab
  5. Restart the program
  6. Set your build system: Tools>Build System>name you chose
  7. You can now press Ctrl+B to compile the the code.
Congratulations, you're done
I successfully completed the first five steps but, there's no Pawn/ Pawno in the build system list


Re: PAWN for SA-MP in Sublime Text 3 - Misiur - 27.08.2017

Do you have "untitled" in the build list by any chance? If so, open Preferences -> Browse packages... open User folder and find untitled.sublime-build and rename it to PAWN.sublime-build


Re: PAWN for SA-MP in Sublime Text 3 - Logic_ - 28.08.2017

I got it from Preferences > Package Settings. Thanks Misiur, I <3 you


Re: PAWN for SA-MP in Sublime Text 3 - kAn3 - 02.09.2017

Awesome!


Re: PAWN for SA-MP in Sublime Text 3 - RedGun2015 - 02.09.2017

Thanks @PeanutButter, but i have a little problem, when i compile with pawno i get something like that when i use -d3

Code:
Header size:           14904 bytes
Code size:           2547064 bytes
Data size:          20795764 bytes
Stack/heap size:       16384 bytes; estimated max. usage: 1234 cells
Total requirements: 23374116 bytes
And when i compile with sublime text 3 it doesn't appear.

What can I do?


Re: PAWN for SA-MP in Sublime Text 3 - Misiur - 02.09.2017

But is the .amx created? This box should always appear with -d3, so that's something not ok


Re: PAWN for SA-MP in Sublime Text 3 - RedGun2015 - 02.09.2017

Quote:
Originally Posted by Misiur
View Post
But is the .amx created? This box should always appear with -d3, so that's something not ok
Yes, the .amx is created.


Re: PAWN for SA-MP in Sublime Text 3 - 5740 - 06.09.2017

Really cool and awesome.


Re: PAWN for SA-MP in Sublime Text 3 - DeStRoY232 - 13.09.2017

is this compatible with newer version of sublime text 3 it got upgraded to build 3143


Re: PAWN for SA-MP in Sublime Text 3 - Oxygenated - 13.09.2017

Quote:
Originally Posted by DeStRoY232
View Post
is this compatible with newer version of sublime text 3 it got upgraded to build 3143
Yes, it is.


Re: PAWN for SA-MP in Sublime Text 3 - cengiz6155 - 13.09.2017

Output:

907 Warnings.

warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level
warning 219: local variable "i" shadows a variable at a preceding level

Please, help.


Re: PAWN for SA-MP in Sublime Text 3 - n00blek - 10.11.2017

i have some bugs with compiler i got this http://prntscr.com/h8v38z


Re: PAWN for SA-MP in Sublime Text 3 - cuber - 10.11.2017

Quote:
Originally Posted by n00blek
View Post
i have some bugs with compiler i got this http://prntscr.com/h8v38z
Code:
{
	"cmd": ["pawncc.exe", "-i includes", "$file", "-;+"],
	"path": "C:/Users/Example/ExampleRP/pawno"
}



Re: PAWN for SA-MP in Sublime Text 3 - billy1337samp - 10.11.2017

Quote:
Originally Posted by n00blek
View Post
i have some bugs with compiler i got this http://prntscr.com/h8v38z
trying scrolling up or down in that box


Re: PAWN for SA-MP in Sublime Text 3 - n00blek - 11.11.2017

.p(0) : fatal error 100: cannot read from file: ".p"

^^^^^^^^^^^^^^^^^^^^^^

i did that and i still got some bugs.

http://prntscr.com/h929j9