SA-MP Forums Archive
How would I make a database of objects through 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: How would I make a database of objects through arrays? (/showthread.php?tid=365097)



How would I make a database of objects through arrays? - Xenoyia - 01.08.2012

Hi,

I'm looking to make a database of objects (which will be called with an /obj command) through arrays. It would go sort of like this:

object[0] = "string", integer, integer, integer
object[1] = "string", integer, integer, integer

Then I could do:

/obj 1

And it'd add the second array entry there. Is this possible and how would I got about doing it?