2025-10-18, 02:29 AM
Hey :)
I haven’t scripted in Pawn for years but im pretty sure the issue is that youre using a variable (LSPDCars) as an array size Pawn doesnt allow dynamic array sizes at compile time, even in open.mp
The problem is caused by this line:
new bool:unwanted[LSPDCars];
In Pawn, array sizes must be constant at compile time. That’s why you’re getting an error there.
To fix it, replace that with a constant or define a fixed size, for example:
new bool:unwanted[26]; // or MAX_VEHICLES if you want it dynamic
Then adjust your loops accordingly.
I haven’t scripted in Pawn for years but im pretty sure the issue is that youre using a variable (LSPDCars) as an array size Pawn doesnt allow dynamic array sizes at compile time, even in open.mp
The problem is caused by this line:
new bool:unwanted[LSPDCars];
In Pawn, array sizes must be constant at compile time. That’s why you’re getting an error there.
To fix it, replace that with a constant or define a fixed size, for example:
new bool:unwanted[26]; // or MAX_VEHICLES if you want it dynamic
Then adjust your loops accordingly.

