Array/Enum(?) - 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: Array/Enum(?) (
/showthread.php?tid=397599)
Array/Enum(?) -
2KY - 05.12.2012
I forget the name for this, but how would I go about doing something like...
pawn Код:
items = [ MAX_ITEMS ] [ ] =
{ 1, ITEM_MEDKIT }
};
And I could then call it like;
pawn Код:
items [ 0 ] [ 0 ] (this would return "1")
Re: Array/Enum(?) -
LarzI - 05.12.2012
Explain further what you want.
Re: Array/Enum(?) -
Nordic - 05.12.2012
items[MAX_ITEMS][] = { { 1, MAX_MEDKIT } };
??