SA-MP Forums Archive
Is this correct ??? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is this correct ??? (/showthread.php?tid=398941)



Is this correct ??? - dr.lozer - 12.12.2012

Is this correct

pawn Код:
if(!strfind("[Clan]",PlayerName(playerid),true)) {
   SendClientMessage(playerid, -1, "Your in our clan");
}

Frist time using strfind


Re: Is this correct ??? - RajatPawar - 12.12.2012

I am not too a great user of strfind,but I think it's something like if(strfind(bla,blabla,true)!=-1) sendclientmessagetoall(-1,"bla found");


Re: Is this correct ??? - dr.lozer - 12.12.2012

didn't helped


Re: Is this correct ??? - Faisal_khan - 12.12.2012

Wikia is your friend,
https://sampwiki.blast.hk/wiki/Strfind
pawn Код:
if(strfind(PlayerName(playerid),"[Clan]",true) != -1) {
   SendClientMessage(playerid, -1, "Your in our clan");
}