Enum question.
#1

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];
Reply
#2

try the search [TAB]
Reply
#3

Garry, DO NOT POST USELESS THINGS.

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

Garry seriously stfu and Max players? Its pickups not players.
Reply
#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
#6

Oww i remember now! Thanks mick.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)