Quote:
Originally Posted by [Diablo]
i use enum for my rank system.
pawn Code:
enum E_RANK { E_RANK_NAME[30], Float:E_RANK_POS[3], E_RANK_INTEGER } new RankArray[][R_RANK] = { { "rank1", x, y, z, i }, { "rank2", x, y, z, i } // more here }
for(new x; x < sizeof(RankArray); x++) { printf("Rank name: %s", RankArray[x][E_RANK_NAME]); // should print "rank1", "rank2" .. }
this is not tested.
|
Ah, that was the thing i was missing, thanks!
I used this before, but couldnt find out how i did it