SA-MP Forums Archive
Enum question. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Enum question. (/showthread.php?tid=245354)



Enum question. - Rokzlive - 31.03.2011

I am making an enum for my housesystem, and im gnna use dynamic pickups for it.

At the bottom of the enum it says WHETHERE, what do i put there? I know its not MAX_PICKUPS because im using dynamic, so what do i use?

pawn Код:
enum houseinfo
{
    Owner[MAX_PLAYER_NAME],
    Price,
    World,
    Float:X,
    Float:Y,
    Float:Z,
    Interior,
    Float:IntX,
    Float:IntY,
    Float:IntZ
}

new housedata[WHATHERE][houseinfo];



Re: Enum question. - Garry Roger - 31.03.2011

try the search [TAB]


Re: Enum question. - SchurmanCQC - 31.03.2011

Garry, DO NOT POST USELESS THINGS.

On topic: What goes there is MAX_PLAYERS I think. (I THINK :P)


Re: Enum question. - Rokzlive - 31.03.2011

Garry seriously stfu and Max players? Its pickups not players.


Re: Enum question. - mick88 - 31.03.2011

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.


Re: Enum question. - Rokzlive - 31.03.2011

Oww i remember now! Thanks mick.