compiler icon indicating copy to clipboard operation
compiler copied to clipboard

Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS

Results 122 compiler issues
Sort by recently updated
recently updated
newest added

### Issue description: Usually the compiler warns about infinite loops through warning 206: ```Pawn while (true) {} // warning 206: redundant test: constant expression is non-zero ``` But apparently when...

state: stale

### Issue description: Compiler crashes with code bellow. I would expect it to at least give error (but i dont see why these code should not work). Also, if you...

state: stale

EXAMPLE DEMO new test[MAX_PLAYERS]; public OnPlayerClickPlayer(playerid, clickedplayerid, source) { test[playerid] = clickedplayerid; return 1; } Demo example Ban(test[playerid]) ; new test2[MAX_PLAYERS]; test2[test[playerid]]; and if(............) Here are examples of when I...

state: stale
state: cannot reproduce
status: incomplete

### Issue description: The following code: ```Pawn #if defined main Func() { new a[4]; new x = 0; a = x ? "ab" : "xyz"; return a[0]; } #else Func(){}...

state: stale

### Issue description: Issue is just small unexpected syntax behavior that should be improved Placing & after tag and before variable drops error `error 001: expected token: "-identifier-", but found...

state: stale

### Issue description: ```Pawn #include public Func(); Func() { printf("Func()"); } main() { printf("main()"); CallLocalFunction("Func", ""); } ``` This code makes function `main()` call itself recursively, causing a stack/heap collision....

state: stale

### Issue description: When compiling script with local includes (modules), unused variable warning returns correct line in file where its defined, but wrong file name. It returns entry (parent) file....

state: stale

### Issue description: The compiler allows to use a combination of `static` and `stock` class specifiers in function definitions and old-style declarations, but doesn't allow it in new-style declarations. ###...

state: stale

const Size = 5; new data[Size]; // Works fine static const Size = 5; new data[Size]; // error 008: must be a constant expression; assumed zero

state: stale
type: bug
area: syntax
state: confirmed

### Issue description: Using the `static` specifier in a new-style function declaration, but omitting it in the definition ```Pawn // file1.inc forward static Func(); Func(){} ``` results in `static` having...

state: stale