Help with code
#3

if Bussinesinf[Bussines][Owner] is a string that stores player name
PHP Code:
new ownerid;
for(new 
BussinesBussines MAX_BUSSINESBussines ++)
    {
        if(
Bussinesinf[Bussines][Buyed])
        {
                    
sscanf(Bussinesinf[Bussines][Owner], "r"ownerid);
                    if(
ownerid != INVALID_PLAYER_ID)
                   {
                       
Bussinesinf[Bussines][Profit] += Bussinesinf[Bussines][Earning];
                   }
        }
    } 
Reply


Messages In This Thread
Help with code - by ,TomY' - 23.09.2016, 19:30
Re: Help with code - by ,TomY' - 23.09.2016, 21:18
Re: Help with code - by Shinja - 23.09.2016, 21:30
Re: Help with code - by Dutheil - 23.09.2016, 22:04
Re: Help with code - by Shinja - 23.09.2016, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)