Thread: Scripting Forum
View Single Post
mehelp
Junior Member
Join Date: Jul 2011
Old 07-19-2011 , 06:11   Re: Scripting Forum
Reply With Quote #21

need help adding comma separator between digits to number, displaying in chat

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 doI do with this:
PrintToChat(i, "%s (%i) got point for killing Infected", Name, (ClientPoints[i] + CurrentPoints[i]));

was advised to go
http://forums.alliedmods.net/showpos...45&postcount=5
but that requires amxmod. what's the way for sourcemod?
mehelp is offline