01.02.2012, 08:50
i use enum for my rank system.
this is not tested.
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" ..
}