STRFIND not working?
#3

You have parameters messed up. You are trying to search for your name in tag [GC] and thats why it isnt working
https://sampwiki.blast.hk/wiki/Strfind

EDIT:
pawn Код:
new pname2[24];
GetPlayerName(playerid, pname2, sizeof(pname2));
if(strfind(pname2, "[GC]", false) != 1);
{
    SendClientMessage(playerid, RED, "Found");
}
else
{
    SendClientMessage(playerid, RED, "Not Found");
}
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: 1 Guest(s)