31.03.2011, 20:56
pawn Код:
if(PlayerInfo[i][pSavings] >= 50000)
{
new savings = ((5/10)/100)*(PlayerInfo[i][pSavings]);
PlayerInfo[i][pSavings] += savings;
format(string,sizeof(string),"Your savings grew with 0.5 percent,total: %d",PlayerInfo[i][pSavings]);
SendClientMessage(i,COLOR_GREY,string);
}
I need this fast.I need the Savings account to raise every payday with 5%