[SOLVED] Need some help with strreplace
#1

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "$mb", true))
    {
        format(string,sizeof(string),"%d Mystery Bags Found", PlayerInfo[playerid][MysteryBagsFound]);
        strreplace("$mb", string, text);
    }
    return 1;
}
Ok, so the code doesn't give any errors or anything. But it just doesn't work. It sends the original message and not the one with the replaced "$mb".

First time with strreplace, so yeah, I could need some help
Reply


Messages In This Thread
[SOLVED] Need some help with strreplace - by [03]Garsino - 28.04.2010, 21:12
Re: Need some help with strreplace - by M4S7ERMIND - 28.04.2010, 21:54
Re: Need some help with strreplace - by [03]Garsino - 29.04.2010, 13:22
Re: [SOLVED] Need some help with strreplace - by bpeterson - 29.04.2010, 13:25

Forum Jump:


Users browsing this thread: 2 Guest(s)