• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Need assistance
#2
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.
  Reply


Messages In This Thread
Need assistance - by Cruncher - 2025-10-16, 12:44 PM
RE: Need assistance - by Cappsy - 2025-10-18, 02:29 AM

Forum Jump: