Different interiors, same ID's?
#1

I am currently making a house/business system where admins will be able to create either a house or business.
And I looked at this page: http://weedarr.wikidot.com/interior to see the different interiors, but then I noticed that some interiors have the same ID, but different locations....

So now I am having trouble with figuring out how to do this, since the admin should be able to pass an interior ID in the cmd...

This is what I have set up so far:
PHP код:
// All the variables used for both houses and businesses.
enum BuildingData {
    
ID,
    
Owner[MAX_PLAYER_NAME],
    
Owned,
    
BuyPrice,
    
SellPrice,
    
Type,
    
Float:EnterX,
    
Float:EnterY,
    
Float:EnterZ,
    
Interior,
    
Float:ExitX,
    
Float:ExitY,
    
Float:ExitZ,
    
Pickup,
    
Text3D:TextLabel
}
enum HouseType {
    
Small_Apartment,
    
Medium_Apartment,
    
Mansion,
}
enum BusinessType {
    
Seven_Eleven,
    
Wallmart,
    
Pizza_Hut,
    
Ammunition
}
new 
Houses[MAX_HOUSES][BuildingData];
new 
Businesses[MAX_BUSINESSES][BuildingData]; 
So how do I use different interiors with the same ID, and how can I tell them apart? Or is there another way to do it?
Reply


Messages In This Thread
Different interiors, same ID's? - by Dakoti - 04.01.2015, 11:17

Forum Jump:


Users browsing this thread: 1 Guest(s)