[Ajuda] 1,2 %?
#2

pawn Code:
PegarPorcentagem(string1, string2) { return (string2 * string1) / 100; }

//new preco = PegarPorcentagem(40, 10000); //40%
E depois, use Float para converter o valor. https://sampwiki.blast.hk/wiki/Float_PT
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: 2 Guest(s)