26.02.2015, 18:53
pawn Код:
InfPrice(oldprice)
{
printf("oldmoney %d", oldprice);
if(TotalServerMoney < 7000000) return oldprice;
new newprice, money, calc;
printf("oldmoney %d", oldprice);
money = (TotalServerMoney - ServerStartMoney) / ServerStartMoney; //7,000,000
printf("ServerStartTotal %d",ServerStartMoney);
printf("TotalServerMoneyl %d",TotalServerMoney);
InflatPercentage = money * 100;
calc = oldprice * InflatPercentage;
newprice = oldprice + calc;
printf("newmoney %d", newprice);
return newprice;
}
pawn Код:
new Float: InflatPercentage;
Thanks.