05.01.2015, 08:00
Today, as I was watching the Tutorials, I Saw a house Tutorial and ofcourse I'm new in Scripting, So I don't know much.. I saw That After defining Max Houses and enums There Was a Line written like this
I wanna know that why have we put "Max_Houses" and "hInfo" in brackets with Houseinfo ?
PHP код:
new HouseInfo[MAX_HOUSES][hInfo];
PHP код:
#define MAX_HOUSES 200
PHP код:
enum hInfo
{
Float:hEnterX, //Entrance X. It's an float! example: 0.0000000. I'm gonna use the same with the other entrances/exits
Float:hEnterY,
Float:hEnterZ,
Float:hExitX,
Float:hExitY,
Float:hExitZ,
hInsideInt, //The inside interior.. DUH!
hInsideVir, //Already subscribed above
hOutsideInt,
hOutsideVir,
bool:hOwned, //boolean! Is house owned? NO = False, YES = True
hOwner[MAX_PLAYER_NAME], //The house owner! I'm gonna use MAX_PLAYER_NAME, because a player can't have a longer name :')
hPrice, //Will store the price
hPickup, //The pickup. This is used to remove/move the pickup icon!
hIcon, //The map icon. Also used to remove/move it! We are going to need an ID. Without an ID we can't do NOTHING!
hVecModel, //The housecar's model
Float:hVecX, //X location. En float too.
Float:hVecY,
Float:hVecZ,
Float:hVecA
};