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

got it now. thank you for pointing. did as you recommended
PHP Code:
new String:szPoints[15];
GetClientName(iNamesizeof(Name));
AddCommas((ClientPoints[i] + CurrentPoints[i]), szPointssizeof(szPoints)); CPrintToChat(i"{blue}%s \x01(%s) got points for killing Infected"NameszPoints); 
got following:
name(1) got points for killing infected
name(1)got points for killing infected
"1" value never changed.
is this because there's sum of clientPoints+current , maybe it'll display properly if referred to some separate value, like just client points or only current (but need some time to earn 1000 currentpoints to see if there's comma)?
or should I install whole piece of code before the block correctly ( I did try that and nothing compiled because of: "AddCommas" already defined)
also I tried
PHP Code:
new String:szPoints[15];
GetClientName(iNamesizeof(Name));
AddCommas((ClientPoints[i] + CurrentPoints[i]), szPointssizeof(szPoints));
CPrintToChat(i"{blue}%s \x01(%s) got points for killing Infected"Name, (ClientPoints[i] + CurrentPoints[i])); 
and got:
name (t)) got points for killing Infected
name(v)) got points for killing Infected
nema (x)) got points for killing Infected
and lots of other different symbols))
mehelp is offline