SA-MP Forums Archive
Pawn Compiler Crashes - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pawn Compiler Crashes (/showthread.php?tid=665735)



Pawn Compiler Crashes - NoteND - 14.04.2019

Hey!

So I have an enum made for WeaponData..

The problem is that if I add "[MAX_PLAYERS]" in variable

PHP Code:
new WeaponInfo[MAX_PLAYERS][MAX_WEAPONS][WeaponData]; 
it crashes compiler.. but if I do it without it works.

Any idea what I'm doing wrong?

"WeaponData" is enum name.
"MAX_WEAPONS" is custom #define


Re: Pawn Compiler Crashes - Dayrion - 14.04.2019

What compiler do you have ? The basic one? If so, it doesn't allow you to create 4D (or more) arrays.
I suggest you to switch to the "community compiler": https://github.com/pawn-lang/compiler/releases


Re: Pawn Compiler Crashes - NoteND - 14.04.2019

I tried it, doesnt work. Or if you can suggest me how to make dynamicobject for player and then also delete all objects that were created for this player.