Problem with percents
#1

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?
Reply
#2

Try 2.0/15.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)