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

If you know about extension methods in C#, you know is good layer of abstraction. As example SourceMod have this [function](https://github.com/alliedmodders/sourcemod/blob/f5461df28cf90461b168f54dfc7373273480d1c3/plugins/include/string.inc#L217): ```sourcepawn /** * Converts an integer to a string....

enhancement

On my Windows machine, the following fails an allocation at some point: `public void main() { int ultimate_power[2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2]; }` I think it was here: https://github.com/alliedmodders/sourcepawn/blob/840c2f934b3884faf02bb7eb614d2a41a2f2e945/compiler/array-helpers.cpp#L888

compiler

If you call a method on an enum struct that's been passed as const, you will get this error where it is called: > error 035: argument type mismatch (argument...

bug
error reporting
compiler

Would be a nice feature to have since other languages do. Although I honestly can't really think of any other use cases other than the one I have right now....

enhancement
compiler

This was a lot less work than what we had to do for clang, we just have to check msvc version

``` void V(int &i) { i = 5; } public void OnPluginStart() { int a = 0; int b = 0; int c = 0; V(c ? a : b);...

enhancement

Latest spcomp 1.11 6820 Adding -a option produces output: `error: Unrecognized option: -a` ![image](https://user-images.githubusercontent.com/8951428/142472193-4407a333-3565-4e06-92fb-7a01a86cf3fb.png)

enhancement

Currently compiled scripts contain the full path to the compile directory which can expose real names, directory layout, etc. I think we could benefit from using a path relative to...

enhancement

When creating an array of chars with initailiser array of integer values it seems to create an array 4 * the expected size instead of converting the values to chars,...

compiler
bug-future

In both `1.10.0.6458` and `1.11.0.6775`, function methodmap can be deprecated, but not property methodmap. ```c++ int Bread; methodmap Duck { public Duck(any value) { return view_as(value); } #pragma deprecated do...

enhancement