Quote:
Originally Posted by CrazY.
You could just multiply the default price by the percent of discount instead of doing this
Code:
cod_itemPrice[id][item] = cod_defaultPrice[item] *3 / 4
You will have something like this
Code:
// 1.0 is 100 percent
new price = floatround(cod_itemPrice[id][item] * 0.25) // 75% off
So if you want, say 25% off, multiply the defaultPrice by 0.75
If you want 70% off, multiply by 0.3
etc.
|
well, that works aswell, but that's not a big problem tho, i also mastered basic mathematics