Raised This Month: $ Target: $400
 0% 

client_print variable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 03-01-2009 , 09:10   Re: client_print variable
Reply With Quote #6

Quote:
Originally Posted by Bugsy View Post
If you want to print a float (decimal number) use %f

PHP Code:
new Float:fNum 1.24;
client_printid print_chat "number is %f" fNum ); 
Also you can limit the number of digits to show up after the decimal point like so:
PHP Code:
new Float:float 0.45;
client_print(0print_chat"Float's value is: %.1f"float);
// It will print 0.4 
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
 



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:56.


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