Delete underscore from string
#9

Try this one, I think will help you
pawn Код:
GiveNameSpace(str[])
{
    new strl;
    strl=strlen(str);
    while(strl--) {
    if(str[strl]=='_')  str[strl]=' ';
    }
    return 0;
}
For example:
pawn Код:
new myname[MAX_PLAYER_NAME];
GetPlayerName(playerid, myname, sizeof(myname));
GiveNameSpace(myname);
new string[128];
format(string, sizeof(string), "%s", myname(playerid));
Reply


Messages In This Thread
Delete underscore from string - by Garwan50 - 15.08.2013, 12:44
Re: Delete underscore from string - by Misiur - 15.08.2013, 12:54
Re : Delete underscore from string - by Garwan50 - 15.08.2013, 13:12
Re: Delete underscore from string - by Jefff - 15.08.2013, 14:55
Re: Delete underscore from string - by Alexis1999 - 15.08.2013, 15:11
Re : Re: Delete underscore from string - by Garwan50 - 15.08.2013, 15:28
Re: Re : Re: Delete underscore from string - by Djole1337 - 15.08.2013, 15:30
Re : Delete underscore from string - by Garwan50 - 15.08.2013, 15:48
Re: Delete underscore from string - by MSuperXX - 15.08.2013, 15:55
Re : Delete underscore from string - by Garwan50 - 15.08.2013, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)