On player connect, give player variables
#4

This will match both strings Like nume have JXFF1
so it will try match it with JXF you can see clearly both are different they are not matching.
if((strcmp(nume, "JXF", true) == 0))

about strfind it will find the JXF in the name of player.

wiki pedia.

(const string[],const sub[],bool:ignorecase=false,pos=0)

const string[] The string you want to search in (haystack).
here GetName(playerid) string You're searching in player name JXF

const sub[] The string you want to search for (needle).
JXF

strfind(GetName(playerid),"JXF",true)
Reply


Messages In This Thread
On player connect, give player variables - by JXF - 18.06.2016, 22:02
Re: On player connect, give player variables - by MBilal - 18.06.2016, 23:34
Re: On player connect, give player variables - by JXF - 18.06.2016, 23:49
Re: On player connect, give player variables - by MBilal - 18.06.2016, 23:58
Re: On player connect, give player variables - by JXF - 19.06.2016, 00:01
Re: On player connect, give player variables - by oMa37 - 19.06.2016, 00:42
Re: On player connect, give player variables - by JXF - 19.06.2016, 02:28

Forum Jump:


Users browsing this thread: 1 Guest(s)