Raised This Month: $ Target: $400
 0% 

Hud message float


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bladell
Senior Member
Join Date: Jun 2012
Old 09-02-2013 , 14:47   Hud message float
Reply With Quote #1

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?
Bladell is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode