[Tutorial] PAWN for SA-MP in Sublime Text 3
#41

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

Reply
#42

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

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

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

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

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

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

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

Awesome!
Reply
#50

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?
Reply
#51

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

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.
Reply
#53

Really cool and awesome.
Reply
#54

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

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.
Reply
#56

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.
Reply
#57

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

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

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

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

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

i did that and i still got some bugs.

http://prntscr.com/h929j9
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)