Different interiors, same ID's? - 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)
+--- Thread: Different interiors, same ID's? (
/showthread.php?tid=554584)
Different interiors, same ID's? -
Dakoti - 04.01.2015
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?