sourcepawn icon indicating copy to clipboard operation
sourcepawn copied to clipboard

A small, statically typed scripting language.

Results 118 sourcepawn issues
Sort by recently updated
recently updated
newest added

The following code: ```sourcepawn methodmap Parent { public Child AsChild() { return view_as(this); } } methodmap Child < Parent {} ``` Produces this compiler output on 1.11: ```bash SourcePawn Compiler...

compiler
bug-future

I just don't know why I got loose indentation warnings here. I have some fairly complicated marcos and it generate way too many "loose indentation" warnings when compile even I...

enhancement
error reporting

Trying to use an enum struct type parameter in a native declaration is a clear compile error: ``` error 135: cannot use enum struct type "Test" in natives ``` A...

enhancement
compiler
vm

enum structs can't be used as a data structure across different plugins by passing them into natives. ```c enum struct MyData { int field1; float field2; char field3[32]; int field4;...

enhancement
compiler
vm

``` int g_a = 0; methodmap CTest { public static void A() { g_a++; if (g_a == 5) PrintToServer("Done"); else CTest.A(); // error 105: cannot find method or property CTest.A...

https://pastebin.com/U1fSY62u Compiler says "error 159: brackets after variable name indicate a fixed-size array, but size could not be determined - either specify sizes, an array initializer, or use dynamic syntax...

enhancement
compiler

I would like to request the ability to overload functions inside method maps. For instance, this should be possible to implement inside the same method map. ``` methodmap Math {...

enhancement
compiler

Add support for definition string as defines. SPComp has support declare defines from console arguments, like: ```sh ./spcomp NAME=VALUE sourcecode.sp ``` But passing string as values doesn't supported.

enhancement
compiler

Currently, non-literal arrays cannot be assigned to separate arrays when the latter is declared. ```sp public void main() { int Foo[3] = {1, 2, 3}; int Bar[3]; Bar = Foo;...

enhancement
compiler

The below code prints that the two arrays are the same size (8); however, uncommenting the assignment line produces error 047, which indicates a size issue. It was expected for...

compiler