Raised This Month: $219 Target: $400
 54% 

Showing results 1 to 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: mehelp
Forum: Scripting 07-23-2011, 23:22
Replies: 38
Sticky: Scripting Forum
Views: 78,579
Posted By mehelp
Re: Scripting Forum

berni shared tis :)

stock FormatNumberInt(value, String:buffer[], size, seperator=',')
{
decl String:helper[size];
IntToString(value, helper, size);
strcopy(buffer, size, helper);...
Forum: Scripting 07-19-2011, 14:50
Replies: 38
Sticky: Scripting Forum
Views: 78,579
Posted By mehelp
Re: Scripting Forum

ok tried

new String:szTmp[ 15 ];
GetClientName(i, Name, sizeof(Name));
AddCommas((ClientPoints[i] + CurrentPoints[i]), szTmp, sizeof(szTmp));
CPrintToChat(i, "{blue}%s \x01(%s) got points for...
Forum: Scripting 07-19-2011, 14:32
Replies: 38
Sticky: Scripting Forum
Views: 78,579
Posted By mehelp
Re: Scripting Forum

thank you, Powerlord, you so fine. even if it won't work, it's nice to try
Forum: Scripting 07-19-2011, 14:19
Replies: 38
Sticky: Scripting Forum
Views: 78,579
Posted By mehelp
Re: Scripting Forum

ok tried displaying currentPoints only:


AddCommas((CurrentPoints[i]), szPoints, sizeof(szPoints));
CPrintToChat(i, "{blue}%s \x01(%s) got points for killing Infected", Name, szPoints);

...
Forum: Scripting 07-19-2011, 13:59
Replies: 38
Sticky: Scripting Forum
Views: 78,579
Posted By mehelp
Re: Scripting Forum

got it now. thank you for pointing. did as you recommended

new String:szPoints[15];
GetClientName(i, Name, sizeof(Name));
AddCommas((ClientPoints[i] + CurrentPoints[i]), szPoints,...
Forum: Scripting 07-19-2011, 12:27
Replies: 38
Sticky: Scripting Forum
Views: 78,579
Posted By mehelp
Re: Scripting Forum

well, I kinda did post it as a thread at first, but occasionally at 'amxmod scripting help'. that was my first post and already turned out to be a spam, so didn't want to multiply threads.

thank...
Forum: Scripting 07-19-2011, 06:11
Replies: 38
Sticky: Scripting Forum
Views: 78,579
Posted By mehelp
Re: Scripting Forum

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...
Showing results 1 to 7 of 7

 
Forum Jump

All times are GMT -4. The time now is 16:58.


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