[Question] strdel(string, strfind...) ?
#4

You can also use this function
pawn Код:
stock strreplace(string[], find, replace)
{
    for(new i=0; string[i]; i++)
    {
        if(string[i] == find)
        {
            string[i] = replace;
        }
    }
}
pawn Код:
stock rpname(playerid)
{
    new cname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, cname, sizeof(cname));
    strreplace(cname, '_', ' ');
    return cname;
}
Reply


Messages In This Thread
[Question] strdel(string, strfind...) ? - by Lorrden - 09.02.2011, 19:40
Re: [Question] strdel(string, strfind...) ? - by Krx17 - 09.02.2011, 20:02
Re: [Question] strdel(string, strfind...) ? - by Lorrden - 09.02.2011, 20:45
Re: [Question] strdel(string, strfind...) ? - by MadeMan - 09.02.2011, 20:58
Re: [Question] strdel(string, strfind...) ? - by randomkid88 - 09.02.2011, 21:12
Re: [Question] strdel(string, strfind...) ? - by Lorrden - 09.02.2011, 22:11
Re: [Question] strdel(string, strfind...) ? - by Krx17 - 10.02.2011, 02:04
Re: [Question] strdel(string, strfind...) ? - by randomkid88 - 10.02.2011, 02:10

Forum Jump:


Users browsing this thread: 2 Guest(s)