Printing out something from an enum
#8

You only need the strings then and the type is the index of the array:
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"

Have a variable that indicates what type is each biz and then:
pawn Код:
BizTypeList[biz_type_here]
Reply


Messages In This Thread
Printing out something from an enum - by Amit1998 - 30.05.2016, 21:13
Re: Printing out something from an enum - by Amit1998 - 31.05.2016, 15:09
Re: Printing out something from an enum - by Dayrion - 31.05.2016, 15:57
Re: Printing out something from an enum - by Kaliber - 31.05.2016, 15:58
Re: Printing out something from an enum - by Amit1998 - 31.05.2016, 17:07
Re: Printing out something from an enum - by Kaliber - 31.05.2016, 17:14
Re: Printing out something from an enum - by Amit1998 - 31.05.2016, 17:41
Re: Printing out something from an enum - by Konstantinos - 31.05.2016, 18:28
Re: Printing out something from an enum - by Amit1998 - 31.05.2016, 18:57
Re: Printing out something from an enum - by Konstantinos - 31.05.2016, 19:15

Forum Jump:


Users browsing this thread: 2 Guest(s)