View Single Post
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 10-19-2017 , 17:04   Re: Best Player MOTD
Reply With Quote #12

I'd probably do it like this:
PHP Code:
// This may error if there isn't a '.' or there aren't any characters after the '.' character. Make sure these conditions are met (formatting with %.2f should guarantee it I guess).
new index strlen(szArg) - 1;
while(
szArgs[index] == '0' && szArgs[index 1] != '.') { --index; }
szArgs[index 1] = EOS

Last edited by klippy; 10-20-2017 at 09:49.
klippy is offline