[Ajuda] 1,2 %?
#7

Quote:
Originally Posted by rjjj
View Post
Isto deve resolver o seu problema :


pawn Code:
stock Float:PercentOf(value, Float:percent)
{
    return float(value) * (percent/100.0);
}

Exemplo de aplicaзгo :


pawn Code:
new x = 25000;
new Float:y = 1.8;
new text[64];
format(text, sizeof(text), "[Valor] %f por cento de %d й igual a %f.", y, x, PercentOf(x, y));
SendClientMessageToAll(0xFFFFFFFF, text);


Espero ter ajudado .
Vlw men <3
Reply


Messages In This Thread
1,2 %? - by Syxh0wN - 24.06.2020, 16:53
Re: 1,2 %? - by ipsLuan - 24.06.2020, 17:57
Re: 1,2 %? - by Syxh0wN - 24.06.2020, 18:00
Re: 1,2 %? - by rjjj - 24.06.2020, 18:30
Re: 1,2 %? - by Syxh0wN - 24.06.2020, 18:35
Re: 1,2 %? - by rjjj - 24.06.2020, 18:50
Re: 1,2 %? - by Syxh0wN - 24.06.2020, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)