16.01.2017, 13:53
Quote:
|
Ehh, can someone explain me how this code works? I am little confused.
PHP код:
|
yours seems like calculating the rate according to the donor level
Like this
Код:
locker_money x level
--------------------------
500
PHP код:
intr = locker_money;
if(PlayerStat[playerid][DonLV])
{
intr = locker_money;
intr *= PlayerStat[playerid][DonLV];
intr /= 500;
format(str, sizeof(str), "Interest Rate [0.%d%%]: %d$.",PlayerStat[playerid][DonLV]*2, intr);
SendClientMessage(playerid, (PlayerStat[playerid][DonLV] == 1) ? BRONZE : (PlayerStat[playerid][DonLV] == 2) ? SILVER : GOLD , str);
}


