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

pawn Код:
stock rpname(playerid)
{
    new cname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, cname, sizeof(cname));
    strdel(cname, strfind(cname, "_", true) > 0 && strfind(cname, "_", true) < MAX_PLAYER_NAME, MAX_PLAYER_NAME);
    return cname;
}
So I made up this piece of shit and when I use the function like:
pawn Код:
printf("%s", rpname(playerid));
It only prints the first character of the players name..
I was wondering if what I'm trying to do is even possbible?
And if it is, what am I doing wrong?
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: 3 Guest(s)