Help me understand this biz script please?
#9

Quote:
Originally Posted by Grim_
Посмотреть сообщение
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.
Okay I think i understand now. thankyou so much for the help.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)