Nu te inregistra daca esti idiot sau agramat!
AlphaCS.RO[ORIGINAL GAMING]
Thanks:
0
Likes:
0
-
[Tutorial] PAWN for SA-MP in Sublime Text 3
PAWN for SA-MP in Sublime Text 3
About
Sublime Text 3 is a highly customizable Text-editor with a lot of cool features, that you don't get using the standard Pawno-editor or Notepad++. I know there are already a bunch of tutorials about this, but they don't explain how to install packages very well, which can be confusing for beginners and I added some instructions on using the program.
You can fully customize the editor to something you feel comfortable with.
Writing code is faster because of the auto-completion and a smart auto-correction.
Your code will look a lot cleaner with the neat indentation it offers.
A lot of useful (customizable) Keyboard Shortcuts to write code more easily.
It also works for a lot of other languages, so it can be used as your primary text editor.
Sublime Text is available for Windows, OS X and and Linux.
Features
Auto-completion
Some pre-made Color Schemes
Some pre-made shortcuts
http://docs.sublimetext.info/en/late...tcuts_win.html
Installing
Downloads
Click here - Download and Install the latest Sublime Text
Click here - Download the Package Control file for sublime
Installing the syntax
Download and Install Sublime Text
Download the Package Control file
Paste the Package Control file into C:\Users\Your PC Username\AppData\Roaming\Sublime Text 3\Installed Packages
Open Sublime Text 3 - or restart if already open
Go to Preferences>Package Control and choose Install Package and wait until a new window pops up
Search for pawn and click on Pawn Syntax, wait until it's installed
You can now change the syntax to PAWN in the Lower right corner or View>Syntax>Pawn
You can now start writing SendClientMessage to see if the auto-completion works. If it doesn't you didn't complete these steps successfully.
Installing the compiler
Go to Tools>Build System>New Build System
Replace the code with this code:
Code:
{
"cmd": ["pawncc.exe", "-i includes", "$file", "-;+"],
"path": "C:/path/to/pawno/folder"
}
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 \.
Save the file (remember the name) and close the tab
Restart the program
Set your build system: Tools>Build System>name you chose
You can now press Ctrl+B to compile the the code.
Congratulations, you're done
Extra instructions
How can I change the compile button?
Go to Preferences>Key Bindings
Search for build with Ctrl+F
You can replace the current key with something new (e.g. F5)
You should see something like this:
Code:
{ "keys": ["ctrl+b"], "command": "build" },
Save the file and restart Sublime Text 3
How can I change the color scheme?
Go to Preferences>Color Scheme
Try out some color schemes. Not satisfied? Go to the next quesion...
How can I get new color schemes?
Go to Preferences>Package Control and choose Install Package
You can search for color schemes between these packages
Indentation
Go to View>Indentation
I recommend Tab Width 4
You can adjust the indentation by selecting the line(s) and pressing Ctrl+[ and Ctrl+].
Or with the Tab button.
Similar Threads
-
By SergiuOfficial in forum Tutoriale
Replies: 0
Last Post: 01-08-17, 20:30
-
By SergiuOfficial in forum Tutoriale
Replies: 0
Last Post: 01-08-17, 20:29
-
By SergiuOfficial in forum Tutoriale
Replies: 0
Last Post: 08-07-17, 13:14
-
By Mihai.!? in forum Tutoriale
Replies: 0
Last Post: 01-02-17, 12:25
-
By Mihai.!? in forum Tutoriale
Replies: 0
Last Post: 26-01-17, 19:18
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules