Posts: 539
Threads: 82
Joined: Sep 2009
Reputation:
0
Well you should put some code when a player buys it, firstly check if the business has an owner, if it has the variable probably has owners name which you use GivePlayerMoney(BusinessInfo[BusOwner], BusinessInfo[BusCost]); and then you continue your code of the new buyer by taking his money making him an owner and everything you need to do it, if you have a system such as the business stores some money and the owner needs to take it, you should check for the stored money and then check if the owner is online and put it in his pocket, if hes not online you should put it in his accountfile, same with 1st code.
Posts: 539
Threads: 82
Joined: Sep 2009
Reputation:
0
I'm not sure how your commands are defined, see for yourself and edit them i just made an example for you
Posts: 110
Threads: 10
Joined: Jun 2011
i guess!
you not add some fanction correctly
just check lines and correct errors