PHP Code:
new gPcvarPercentNum
gPcvarPercentNum = register_cvar("vip_percentadd", "1.5")
ShowSyncHudMsg(players[i], hudsync, "You are VIP!^nXp rate: %f x", get_pcvar_num(gPcvarPercentNum))
Problem: It show on screen
Code:
You are VIP!
Xp rate: 1.4999999 x
Or if vip_percentadd = 2.0
Code:
You are VIP!
Xp rate: 2.0000000 x
How can I fix this?I want to show 1,5 or 2.0 or any value that I set on that cvar.Not a big number with a lot of 00000000000.
Advices?