Raised This Month: $51 Target: $400
 12% 

help adding comma to number


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mehelp
Junior Member
Join Date: Jul 2011
Old 07-18-2011 , 15:12   help adding comma to number
Reply With Quote #1

want chat to display player's points on infected death with comma after thousand, for instance:
stupid (10,222) got 1 point for killing infected
can't get 10222 number with comma
what should I do with this:
PrintToChat(i, "%s (%i) got 1 point for killing Infected", Name, (ClientPoints[i] + CurrentPoints[i]));

really sorry if this is dumb, couldn't find the way. I know nothing

Last edited by mehelp; 07-18-2011 at 15:15.
mehelp is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-18-2011 , 15:16   Re: help adding comma to number
Reply With Quote #2

http://forums.alliedmods.net/showpos...45&postcount=5
__________________
Bugsy is offline
mehelp
Junior Member
Join Date: Jul 2011
Old 07-18-2011 , 15:23   Re: help adding comma to number
Reply With Quote #3

thank you

Last edited by mehelp; 07-20-2011 at 10:32.
mehelp is offline
mehelp
Junior Member
Join Date: Jul 2011
Old 07-18-2011 , 18:10   Re: help adding comma to number
Reply With Quote #4

won't work for sourcemod though

Last edited by mehelp; 07-20-2011 at 10:33.
mehelp is offline
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 13:43.


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