Is this correct ???
#1

Is this correct

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

Frist time using strfind
Reply
#2

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");
Reply
#3

didn't helped
Reply
#4

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");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)