This is a modified version of the Pawn 3.2.3664 compiler with many bug fixes and enhancements.
This project was originally started by Zeex but on 2017-12-31, the project was taken over by some members of the SA:MP community. Zeex still contributes to the project, along with the Compiler Team.
The original readme is available here
This project exists to:
- Fix known bugs with the original compiler
- Provide a better development experience for the SA:MP community
If you find problem, you can open an issue and contributors can work on a fix. This isn't true with the original compiler that comes with the SA:MP server distribution.
There are also new features that enhance the development experience, such as telling you which tags are involved in a "tag mismatch" or showing you where that pesky "symbol is never used" is actually declared.
There are plenty of features and fixes that are documented, see below for links:
-
Known compiler bugs contains a list of bugs that the team are aware of with their status.
-
What's new contains features and other notable changes.
-
Release notes list of all official releases of the compiler binaries.
Binary packages can be downloaded from Releases, see the below sections for platform-specific installation instructions.
Note: You will probably get warnings/errors/fatals when you first build
with this compiler โ you need to add the -Z
flag to your build configuration
or add #pragma compat
. See this page for more information.
You can also get the latest development binaries for Windows on AppVeyor. This archive is built automatically on every Git commit and can be pretty unstable, so use at your own risk.
If you just use an editor configured to run pawncc
such as Pawno, Sublime Text
or VS Code you can simply delete your existing pawncc.exe
and replace it with
the new one.
Download the ZIP archive and extract pawnc.dll
, pawncc.exe
,
pawndisasmsm.exe
to your original pawncc
directory. If you use Pawno, this
will be in the pawno/
folder that's inside your server directory.
There is an installation package available for openSUSE/SLES users so that you can easily install the compiler on your distribution. Please follow these steps:
- Go to https://build.opensuse.org/package/show/home:mschnitzer/pawncc
- On the right side, select your distribution (only if it's not disabled!)
- Click "Go to download repository"
- Copy the link and enter in sudo mode in your shell:
zypper ar $COPIED_LINK home:mschnitzer
- Again as root, type:
zypper ref
- Install the package with
zypper in pawncc
- Run
pawncc
in your shell to test if it's working
If you are a sampctl user, you are already using this compiler!
If you are interested in contributing or just using a specific version, check out this page for instructions for compiling for your platform.
The project was originally started as a set of patches aimed to create a compiler that would be compatible with the compiler used in SA-MP (San Andreas Multiplayer).
SA-MP uses a modified version of Pawn 3.2.3664 [1] with Windows-only executables, and the developers said that they lost the source code for it which means it can't be ported to other platforms (e.g. Linux) and newly discovered bugs can't be fixed. So the main goal of the project is to re-create changes that were previously made by the devs as well as fix all known compiler bugs.
[1] It's worth noting that the version of the AMX embedded into the SA-MP server seems to be based on an older release of Pawn.