View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-19-2017 , 15:15   Re: Best Player MOTD
Reply With Quote #10

Quote:
Originally Posted by KliPPy View Post
Convert the floating point value to a string then cut off '0' characters from the end.
PHP Code:
for(new strlen(szArg) - 10i--)
{
    if(
szArg[i] == '0')
        
szArg[i] = ' '
    
else break
}
    
trim(szArg
Any shorter way for doing it or a native I haven't noticed?
__________________

Last edited by OciXCrom; 10-19-2017 at 15:15.
OciXCrom is offline
Send a message via Skype™ to OciXCrom