AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help adding comma to number (https://forums.alliedmods.net/showthread.php?t=162400)

mehelp 07-18-2011 15:12

help adding comma to number
 
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 :shock:

Bugsy 07-18-2011 15:16

Re: help adding comma to number
 
http://forums.alliedmods.net/showpos...45&postcount=5

mehelp 07-18-2011 15:23

Re: help adding comma to number
 
thank you

mehelp 07-18-2011 18:10

Re: help adding comma to number
 
won't work for sourcemod though


All times are GMT -4. The time now is 00:46.

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