Timer problem
#10

What is printing in the console here?

PHP код:
printf("OnEXP[%i] = %i",i,OnExp[i]);
PlayerData[i][Exp] += 1;
OnExp[i] += 1;
printf("OnEXP[%i] = %i",i,OnExp[i]);
if(
OnExp[i] >= 60)
{
    
printf("OnEXP[i] >= 60",i);
    new 
checks PlayerData[i][Level] * 300;
    new 
account PlayerData[i][Bank];
    new 
interest account 300;
    
PlayerData[i][Bank] += interest;
    if(
PlayerData[i][FPunish] > 0PlayerData[i][FPunish] -= 1;
    
SendClientMessage(iCOLOR_WHITE"________ BANK STATEMENT ________");
    
format(stringsizeof(string), "  Paycheck: $%s"Decimal(checks));
    
SendClientMessage(iCOLOR_GRAD1string);
    
format(stringsizeof(string), "  Old Balance: $%s | Interest rate: 0.1%%"Decimal(account));
    
SendClientMessage(iCOLOR_GRAD1string);
    
format(stringsizeof(string), "  New balance: $%s"Decimal(PlayerData[i][Bank]));
    
SendClientMessage(iCOLOR_GRAD5string);
    
GivePlayerCash(ichecks);
    
mysql_format(SQLstr,128,"UPDATE `users` SET `Bank`='%d',`FPunish`='%d' WHERE `ID`='%d' LIMIT 1",PlayerData[i][Bank],PlayerData[i][FPunish],PlayerData[i][ID]);
    
mysql_tquery(SQLstr"""");
    
OnExp[i] = 0;
    
printf("OnExp[%i] = 0 (%i)",i,OnExp[i]);

- Mencent
Reply


Messages In This Thread
Timer problem - by PepsiCola23 - 22.07.2015, 20:33
Re: Timer problem - by xVIP3Rx - 22.07.2015, 20:46
Re: Timer problem - by PepsiCola23 - 22.07.2015, 20:56
Re: Timer problem - by PepsiCola23 - 23.07.2015, 12:45
Re: Timer problem - by notime - 23.07.2015, 13:02
AW: Timer problem - by Mencent - 23.07.2015, 13:13
Re: Timer problem - by PepsiCola23 - 23.07.2015, 13:35
AW: Timer problem - by Mencent - 23.07.2015, 13:38
Re: Timer problem - by PepsiCola23 - 23.07.2015, 13:50
AW: Timer problem - by Mencent - 23.07.2015, 13:54

Forum Jump:


Users browsing this thread: 4 Guest(s)