09.08.2011, 08:31
Quote:
Each business has it's own unique ID. When the player purchases that business, their variable, PlayerInfo[playerid][pBizKey], gets assigned that value. It gets saved into their profile, and loads when they log-in.
When you want to check if they have a business, you'll know as long as that value is something other than -1 (as the unique IDs for the businesses start at 0). Then, knowing they have that specific unique ID, which also acts as the businesses index inside the BizInfo array, you can access the data directly by using it within the BizInfo array. |