SA-MP Forums Archive
Pawn Compile crash (arrays) - 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 Compile crash (arrays) (/showthread.php?tid=349140)



Pawn Compile crash (arrays) - MP2 - 07.06.2012

Out of everything I've done in pawn for the last 4 years, 99 percent of my problems are with fucking arrays. They are the bane of my fucking life.

I'm trying to make an array of 'sporty' vehicles:

pawn Код:
new gVehModel_Sporty[] = {
402, // Buffalo
411, // Infernus
415, // Cheetah
429, // Banshee
451, // Turismo
477, // ZR-350
480, // Comet
506, // Super GT
541, // Bullet
559, // Jester
560, // Sultan
602, // Alpha
603 // Phoenix
};
Then create a vehicle with one of those models, randomly:

EDIT: .. nevermind.

Turns out arrays are case sensitive and if you don't adhere to that pawn has a mardy.