samp.directory
← Tools

Pawn compiler

Write or paste a SA-MP or open.mp script and compile it here, with the same compiler sampctl and open.mp use. Mistakes are shown on their lines and explained, and brackets and indentation are checked as you type.

Loading the editor

Compiler

Press Compile to check the script with the real compiler. Its errors and warnings show here and on their lines.

Live checks

Brackets and strings

✓ Every bracket, string and comment is closed.

Indentation

✓ The indentation follows the braces.

Includes

Compiled with the SA-MP 0.3.7 includes. Chosen by the script: open.mp’s when it includes <open.mp>.

Includes and options
Standard includes

Libraries that come with the page

Include any of them as you would on a PC; those not included are left out.

  • sscanf 2.15.1
  • Streamer 2.9.6
  • Pawn.CMD 3.4.0
  • zcmd 0.3.1
  • MySQL plugin R41-4
  • samp-bcrypt 0.4.1
  • Pawn.Regex 1.2.3
  • Pawn.RakNet 1.6.1
  • foreach 19.0

<Pawn.CMD> <Pawn.RakNet> <Pawn.Regex> <a_mysql> <foreach> <samp_bcrypt> <sscanf2> <streamer> <zcmd>

Add a library from GitHub

Your browser downloads its include files from GitHub, with the libraries its pawn.json depends on, and keeps them here for next time. Add :tag or #commit for a given version.

Your own include files

Add .inc files, or a whole folder such as pawno/include. They are read here and never uploaded, and a file of yours takes the place of the page’s file of the same name.

Compiler options
Text

The command line it runs

Pawn compiler 3.10.10, running in your browser. Nothing is uploaded: your scripts are kept in this browser only.

About this compiler

Credits and licences

The compiler and every include here are the work of their authors, used under their licences:

Every licence in full

Pawn compiler online for SA-MP and open.mp | samp.directory