enumerations
#1

Код:
enum ganginfo{
Name[MAX_GANG_NAME],
Members[30][MAX_PLAYER_NAME],
Zones[20][3]
};

new Gang[MAX_GANGS][ganginfo];
this wont compile.
how to do it right?
Reply
#2

I think its because pawn doesn't support 4 dimensional arrays which is what your trying to do.
Reply
#3

lol ok thx
do you know any way how i can do this then?
Reply
#4

You just need to make seperate arrays if they go over 3d.
Reply
#5

nvm did it this way:
Код:
new Name[MAX_GANGS][MAX_GANG_NAME];
new Members[MAX_GANGS][MAX_GANG_MEMBERS][MAX_PLAYER_NAME];
new Zones[MAX_GANGS][MAX_GANG_ZONES][4];
Reply
#6

Do you have a reason for storing the players names within the gang? You can save a fair chunk of memory by just saving the playerid's of the players in the gang.
Reply
#7

but this will load from files.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)