Raised This Month: $ Target: $400
 0% 

print_chat commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 05-25-2010 , 03:53   Re: print_chat commands
Reply With Quote #1

Please anyone feel free to correct me, but I believe:

Some Examples:
%f = Float value = 0.000000
%.2f = 0.00
%.3f = 0.000

%s = String = "Wuzzup!"
%i = Integer = 4
%d = Data (I think this can be used universally, should show string/integer/floats)
--------------------
Usually you use these when formatting some type of string, as in for a message related to usually health, name, steamid, and other generated information.
Say you want to display the client id and steamid of a user, you would need to do...

Code:
new s[32]; get_user_authid(id,s,sizeof(s)); new msg[64]; format(msg,sizeof(msg),"ID: %i, SteamID: %s",id,s);
__________________


Last edited by mysticssjgoku4; 05-25-2010 at 03:56.
mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Reply



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 05:23.


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