STRFIND not working?
#1

Hi, This code is supposed to search the name for "[GC]" even when I have it in my name, It still says that it's not found...
pawn Код:
new pname2[24];
    GetPlayerName(playerid, pname2, sizeof(pname2));
    new found = strfind("[GC]", pname2);
    if(found != -1)
    {
        SendClientMessage(playerid, RED, "Found");
    }
    else
    {
        SendClientMessage(playerid, RED, "Not Found");
        }
Any help?
Reply


Messages In This Thread
STRFIND not working? - by [WF]Demon - 11.08.2011, 20:00
Re: STRFIND not working? - by Darnell - 11.08.2011, 20:07
Re: STRFIND not working? - by Macluawn - 11.08.2011, 20:08
Re: STRFIND not working? - by Darnell - 11.08.2011, 20:09
Re: STRFIND not working? - by Macluawn - 11.08.2011, 20:12
Re: STRFIND not working? - by [WF]Demon - 11.08.2011, 20:17
Re: STRFIND not working? - by Macluawn - 11.08.2011, 20:22
Re: STRFIND not working? - by PrawkC - 11.08.2011, 20:23
Re: STRFIND not working? - by Macluawn - 11.08.2011, 20:24
Re: STRFIND not working? - by [WF]Demon - 11.08.2011, 20:24

Forum Jump:


Users browsing this thread: 2 Guest(s)