Removing 'spaces' from a string
#2

add this in bottom of your script
Код:
stock string_replace(string[], find, replace)
{
    for(new i=0; string[i]; i++)
    {
        if(string[i] == find)
        {
            string[i] = replace;
        }
    }
}
this is how its used
Код:
string_replace( string ,' ' ,'') // your string ,char that needs to be replaced ,new char
Reply


Messages In This Thread
Removing 'spaces' from a string - by Burthop - 20.08.2012, 23:44
Re: Removing 'spaces' from a string - by detter - 21.08.2012, 00:05
Re: Removing 'spaces' from a string - by Kar - 21.08.2012, 00:11

Forum Jump:


Users browsing this thread: 1 Guest(s)