Float value problem.
#7

Believe me, i have a code, which is doesn't work properly because of this inaccuracy. Otherwise i'd not have started this topic

Just another example:
pawn Код:
// SomeStats[playerid] = 40.0
new str[32];
format(str,sizeof(str),"Your xxx is %.1f !",SomeStats[playerid]);   // "Your xxx is 40.0 !"
SendClientMessage(playerid,COLOR_WHITE,str);

//....

//Now SomeStats[playerid] = 40.1
new str[32];
format(str,sizeof(str),"Your xxx is %.1f !",SomeStats[playerid]);   // It will still show "Your xxx is 40.0 !"
SendClientMessage(playerid,COLOR_WHITE,str);
Reply


Messages In This Thread
Float value problem. - by Norck - 18.03.2011, 15:49
Re: Float value problem. - by Sascha - 18.03.2011, 15:59
Re: Float value problem. - by Norck - 18.03.2011, 16:14
Re: Float value problem. - by Kyosaur - 18.03.2011, 16:19
Re: Float value problem. - by Norck - 18.03.2011, 16:37
Re: Float value problem. - by Kyosaur - 18.03.2011, 16:49
Re: Float value problem. - by Norck - 18.03.2011, 17:01
Re: Float value problem. - by Kyosaur - 18.03.2011, 17:05
Re: Float value problem. - by Norck - 18.03.2011, 17:15
Re: Float value problem. - by Norck - 18.03.2011, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)