SA-MP Forums Archive
Best way for variables - 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: Best way for variables (/showthread.php?tid=499550)



Best way for variables - Shockey HD - 08.03.2014

So lets say I create a enum:

pawn Код:
static wPLant[MAX_PLANTS][WeedPlant];

This is where I'll be making my weed plants for example. So I can specifically have each plant have its own information, I'll be needing something to fill in for MAX_PLANTS (Not good with terms yet so I'm guessing this is array, Right?)


What's the way for creating specific IDs for each plant for MAX_PLANTS?