Raised This Month: $ Target: $400
 0% 

having '%' in a hudmsg ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
noob
Junior Member
Join Date: Jun 2004
Old 06-10-2005 , 15:58   having '%' in a hudmsg ?
Reply With Quote #1

i cant use the %-symbol in a hud-text.. err?
runtime error: "String formatted incorrectly - parameter 4 (total 3)"

Code:
new hudmsg[256], len len = format(hudmsg,255, "^n4^% faster movement") set_hudmessage(255, 255, 255, -1.0, 0.50, 0, 0.0, 5.0, 0.0, 0.5, 1) show_hudmessage(id, hudmsg)

i also tried this but it failed too:
Code:
len = format(hudmsg,255, "^4%s faster movement", "%")
both of the methods work like a dream in client_print and others like that, so whats wrong with the hud?
noob 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 16:46.


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