Problem with percents - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with percents (
/showthread.php?tid=331856)
Problem with percents -
Dodus - 06.04.2012
Hello, why this script isn't show me the percent from number if i do that:
Код:
new Float:percent = (2/15) * 100;
SendClientFormatMessage(playerid, COLOR_WHITE, "Percent: %d%", floatround(percent));
The percent what this return is 0. What's going on?
Re: Problem with percents -
MadeMan - 06.04.2012
Try 2.0/15.0