FiveGame SA:MP GameMod, Tutoriale

Alăturați-vă forumului, este rapid și ușor

FiveGame SA:MP GameMod, Tutoriale
FiveGame SA:MP GameMod, Tutoriale
Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.

FiveGame SA:MP Daca aveti orice fel de intrebari nu ezitati sa ne contactati. O zi buna, Echipa
Forumul FiveGame este in cautare de persoane capabile pentru a modera forumul și pentru a ajuta utilizatorii la nevoie.
Salut, vreau sa va anunț ca în
Ultimele subiecte

In jos
InceMan
InceMan
Administrator
Administrator
Mesaje : 527
Data de inscriere : 02/10/2015
Varsta: : 31
Localizare: : Neamt
https://fivegame.all-up.com

PAWN for SA-MP in Sublime Text 3 Empty PAWN for SA-MP in Sublime Text 3

11/2/2017, 11:05
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.

[size]

Features

Auto-completion

PAWN for SA-MP in Sublime Text 3 J1l6xzj




Some pre-made Color Schemes

PAWN for SA-MP in Sublime Text 3 YRNN0uW
PAWN for SA-MP in Sublime Text 3 JmP759i
PAWN for SA-MP in Sublime Text 3 3UhjvN7




Some pre-made shortcuts

[Trebuie sa fiti inscris si conectat pentru a vedea acest link]



Installing

Downloads
[Trebuie sa fiti inscris si conectat pentru a vedea acest link] - Download and Install the latest Sublime Text
[url=https://packagecontrol.io/Package Control.sublime-package]Click here[/url] - Download the Package Control file for sublime


Installing the syntax
[/size]

  1. Download and Install Sublime Text
  2. Download the Package Control file
  3. Paste the Package Control file into C:\Users\Your PC Username\AppData\Roaming\Sublime Text 3\Installed Packages
  4. Open Sublime Text 3 - or restart if already open
  5. Go to Preferences>Package Control and choose Install Package and wait until a new window pops up
  6. Search for pawn and click on Pawn Syntax, wait until it's installed
  7. You can now change the syntax to PAWN in the Lower right corner or View>Syntax>Pawn

[size]

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
[/size]

  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.

[size]

Congratulations, you're done



Extra instructions

How can I change the compile button?
[/size]

  1. Go to Preferences>Key Bindings
  2. Search for build with Ctrl+F
  3. You can replace the current key with something new (e.g. F5)
    You should see something like this:
    Code:
    { "keys": ["ctrl+b"], "command": "build" },

  4. Save the file and restart Sublime Text 3

[size]


How can I change the color scheme?
[/size]

  1. Go to Preferences>Color Scheme
  2. Try out some color schemes. Not satisfied? Go to the next quesion...

[size]

How can I get new color schemes?
[/size]

  1. Go to Preferences>Package Control and choose Install Package
  2. You can search for color schemes between these packages

[size]

Indentation
[/size]

  • 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.



PAWN for SA-MP in Sublime Text 3 9ZpDtPa
[size]


More tips

[Trebuie sa fiti inscris si conectat pentru a vedea acest link][/size]
__________________

[size=32]Programming With Love[/size]
[size]
MY TUTORIALS
Quote:
[/size]
[Trebuie sa fiti inscris si conectat pentru a vedea acest link]
Sus
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum