Tag problem
#10

Quote:
Originally Posted by GiamPy.
Посмотреть сообщение
Strfind returns -1 when the needle (the word searched) is NOT found. In this case, you inverted the checks.

pawn Код:
new stringtag[128];

if(PlayerInfo[playerid][pTag] == 0) // The server found the player is not part of the clan. Has they got the tag into their name?
{
    if(strfind(Name(playerid), "[KZ]", true) > -1) // If the server does not find the tag, strfind returns -1. That means the following code is not executed.
    {
        format(stringtag, sizeof(stringtag), "%s has been kicked from the Server [Reason: Unauthorized Tag]", Name(playerid));
        SendClientMessageToAll(C_LBLUE, stringtag);
        DelayKick(playerid, 100);
    }
}
sorry dude, dint work. by the way,
pawn Код:
if(PlayerInfo[playerid][pTag] == 0)//the player is not in the clan!
Reply


Messages In This Thread
Tag problem - by DetoNater - 30.05.2013, 09:36
Re: Tag problem - by IceBilizard - 30.05.2013, 09:43
Re: Tag problem - by DetoNater - 30.05.2013, 09:48
Re: Tag problem - by IceBilizard - 30.05.2013, 09:49
Re: Tag problem - by DetoNater - 30.05.2013, 10:06
Re: Tag problem - by IceBilizard - 30.05.2013, 10:11
Re: Tag problem - by DetoNater - 30.05.2013, 11:38
Re: Tag problem - by GiamPy. - 30.05.2013, 11:44
Re: Tag problem - by IceBilizard - 30.05.2013, 11:58
Re: Tag problem - by DetoNater - 30.05.2013, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)