Just practice
#5

Make sure EVERYTHING has the tag Float so the correct operator is used... or just use floatdiv or floatmul.

So, First of all, Set the Enota and Celota correctly by doing:
PHP код:
new Float:Celota 270.0;
new 
Float:Enota 270.0
And then at the stock:
PHP код:
stock Procenti(playerid)
{
    new 
string[128];
    new 
Procent floatround(((Enota Celota) * 100.0), floatround_round);
    
    
format(stringsizeof(string),"There is currently %f Enot, which is exactly %.0f% percent!",Enota,float(Procent));
    
SendClientMessage(playerid,-1,string);

Try it and tell us if it works.
Reply


Messages In This Thread
Just practice - by Razturach - 27.11.2015, 22:12
Re: Just practice - by TwinkiDaBoss - 28.11.2015, 01:20
Re: Just practice - by Razturach - 28.11.2015, 20:04
Re: Just practice - by TwinkiDaBoss - 28.11.2015, 20:10
Re: Just practice - by Ahmad45123 - 28.11.2015, 20:19
Re: Just practice - by AbyssMorgan - 28.11.2015, 20:20
Re: Just practice - by Razturach - 01.12.2015, 11:14

Forum Jump:


Users browsing this thread: 1 Guest(s)