Strfind not working..
#2

Try using this code, you got the error because you used wrong format of strfind() function
Quote:

new nname[MAX_PLAYER_NAME];
GetPlayerName(playerid, nname, sizeof(nname));
if(strfind(nname, "[GTA]", true) != -1)


Its the wrong format
Quote:

strfind("[GTA]", nname, true) != -1)

The correct format should be
Quote:

strfind(nname, "[GTA]", true) != -1)

Reply


Messages In This Thread
Strfind not working.. - by Magic_Time - 08.02.2013, 19:29
Re: Strfind not working.. - by Height - 08.02.2013, 19:38
Re: Strfind not working.. - by MicroD - 08.02.2013, 19:40
Re: Strfind not working.. - by Magic_Time - 08.02.2013, 19:48

Forum Jump:


Users browsing this thread: 1 Guest(s)