How do delete one string from another?
#1

Hey..
Here's my code:
pawn Код:
stock KickFromGang(PlayerID,GangName[])
{
    if(!dini_Exists(GangName)) return -1;
    new str[512],name[24];
    GetPlayerName(PlayerID,name,24);
    str = dini_Get(GangName,"Members");
    if(strfind(str,name,true) != 1) // If Player is in File:GangName, line:"Members"
    {
        // Need code to remove "name" from "str"
        return 1;
    }
    return 0;
}
So I could remove name from str...
Reply


Messages In This Thread
How do delete one string from another? - by SiJ - 24.07.2009, 14:13
Re: Help with strfind and strdel(?).. - by Weirdosport - 24.07.2009, 14:20
Re: Help with strfind and strdel(?).. - by SiJ - 24.07.2009, 14:22
Re: [HELP] Help with strfind and strdel(?).. - by SiJ - 24.07.2009, 15:04
Re: How do delete one string from another? - by paytas - 24.07.2009, 15:58
Re: How do delete one string from another? - by SiJ - 24.07.2009, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)