Find and remove specific tag
#2

pawn Код:
stock RemoveTag(p,tag[] = "[LOL]")
{
    new n[24],pos,bool:found,len = strlen(tag);
    GetPlayerName(p,n,24);
    while((pos = strfind(n,tag,true,pos+1)) != (-1))
    {
        strdel(n,pos,(pos+len));
        found = true;
    }
    if(found)
        SetPlayerName(p,n);
}
hm but what if player nick = [LOL] ? xD
Reply


Messages In This Thread
Find and remove specific tag - by iTorran - 19.02.2012, 12:32
Re: Find and remove specific tag - by Jefff - 19.02.2012, 12:54
Re: Find and remove specific tag - by iTorran - 17.03.2012, 12:11
Re: Find and remove specific tag - by [ABK]Antonio - 17.03.2012, 12:26
Re: Find and remove specific tag - by ReneG - 17.03.2012, 12:44
Re: Find and remove specific tag - by MP2 - 17.03.2012, 12:46
Re: Find and remove specific tag - by [ABK]Antonio - 17.03.2012, 12:48
Re: Find and remove specific tag - by iTorran - 17.03.2012, 13:51
Re: Find and remove specific tag - by ReneG - 17.03.2012, 15:30

Forum Jump:


Users browsing this thread: 3 Guest(s)