23.09.2016, 19:30
Hi. I have code:
This code will add Profit for Bussines. Also I done timer. This code adding for all bussines profit. Now I want to do, that this code will add profit only for connected ( online ) bussines owners. How to do that?
Bussines owner:
Code:
for(new Bussines; Bussines < MAX_BUSSINES; Bussines ++) { if(Bussinesinf[Bussines][Buyed]) { Bussinesinf[Bussines][Profit] += Bussinesinf[Bussines][Earning]; } }
Bussines owner:
Code:
Bussinesinf[Bussines][Owner]