Enum question.
#5

pawn Код:
#define MAX_HOUSES 500 //example value
enum houseinfo
{
    house_Owner[MAX_PLAYER_NAME],
    house_Price,
    house_World,
    Float:house_X,
    Float:house_Y,
    Float:house_Z,
    house_Interior,
    Float:house_IntX,
    Float:house_IntY,
    Float:house_IntZ
}

new housedata[MAX_HOUSES][houseinfo];
oh and I added house_ before each name in enum, otherwise they would collide with variable names.
Reply


Messages In This Thread
Enum question. - by Rokzlive - 31.03.2011, 01:17
Re: Enum question. - by Garry Roger - 31.03.2011, 01:21
Re: Enum question. - by SchurmanCQC - 31.03.2011, 01:22
Re: Enum question. - by Rokzlive - 31.03.2011, 01:29
Re: Enum question. - by mick88 - 31.03.2011, 02:37
Re: Enum question. - by Rokzlive - 31.03.2011, 02:53

Forum Jump:


Users browsing this thread: 2 Guest(s)