31.05.2016, 18:28
You only need the strings then and the type is the index of the array:
Have a variable that indicates what type is each biz and then:
PHP код:
// global:
new const BizTypeList[][] =
{
"Bank",
"Grocery Store",
"Casino",
"Gas Station",
"Hardware Store",
"Night club",
"Pub",
"Strip Club",
"Gun Store",
"Pizza Stack",
"Burger Shot",
"Cluckin' Bell",
"Cafe",
"Clothes Store",
"Restaurant",
"Pay 'N' Spray",
"Drug Factory",
"Government Tax Income",
"Refinary Income",
"Airport",
"Taxi Station",
"Vehicle Rent",
"Driver Business",
"Stadium Business",
"Paintball",
"Advertisement Tower",
"Phone Provider",
"Vehicle Exports",
"Drug Store",
"Bike Dealership",
"Heavy Dealership",
"Car Dealership",
"Luxus Dealership",
"Noobie Dealership",
"Air Dealership",
"Boat Dealership",
"Job Dealership",
"Wheel Mod Shop",
"Toy Store",
"Appartment Complex",
"Hotel",
"Vehicle Register"
}
pawn Код:
BizTypeList[biz_type_here]