value doesn't increased
#1

PHP код:
public BusinessTimer()
{
    foreach(new 
Business)
    {
        if((
gettime() - BusinessData[i][LastVisited]) > BUSINESS_DAYS 86400)
        {
            
Business_Reset(i);
            continue;
        }
        if(!
BusinessData[i][Closed] && BusinessData[i][SalePrice] == && strcmp(BusinessData[i][Owner], "-"))
        {
            if(
IsPlayerConnected(BusinessData[i][Owner])
            {
                
BusinessData[i][Money] += BusinessData[i][Earning];
                 
BusinessData[i][Save] = true;
            }
        }
        if(
BusinessData[i][Save]) Business_Save(i);
    }
    return 
1;

it doesn't work even the owner of the business is connected
the code should work and the earning is increased,but it doesnt
Reply


Messages In This Thread
value doesn't increased - by Bondz - 02.10.2016, 14:44
Re: value doesn't increased - by Dutheil - 02.10.2016, 16:36
Re: value doesn't increased - by Bondz - 03.10.2016, 07:18
Re: value doesn't increased - by SickAttack - 03.10.2016, 07:36

Forum Jump:


Users browsing this thread: 2 Guest(s)