SA-MP Forums Archive
Array Checkup, do they look right? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Array Checkup, do they look right? (/showthread.php?tid=275525)



Array Checkup, do they look right? - dowster - 10.08.2011

http://pastebin.com/5H3wZ69z

im making an array include with every object in GTA SA for use with a gamemode i will be making, i was just wondering if these arrays look correct as im using macros and CTRL + F to format them after copy/paste from wiki. Just would like someone to take a quick look and just act as another set of eyes for me, thanks.


Re: Array Checkup, do they look right? - Macluawn - 10.08.2011

No.

Mooo


Re: Array Checkup, do they look right? - dowster - 10.08.2011

What was wrong with them, there should be one integer in the begining, and two strings after that


Re: Array Checkup, do they look right? - Donya - 10.08.2011

Yes, they are alright.


Re: Array Checkup, do they look right? - Lenny the Cup - 10.08.2011

Why don't you make an enumerator?


Re: Array Checkup, do they look right? - dowster - 10.08.2011

Quote:
Originally Posted by Lenny the Cup
Посмотреть сообщение
Why don't you make an enumerator?
enum would be usefull if the data needed to be changed, however this data wont be changed. it will be sorted, parsed, but not changed in the ending gamemode
edit: actually thinking about it, it may make accessing the integers a bit easier as i wont have to do
pawn Код:
arrayname[0][0]
and could just do
pawn Код:
arrayname[ID]
Thanks