05.09.2011, 15:48
Im getting kicked by using the name "Lemmy_Lusion[NL]" when im using this piece of code:
I never used the strfind function before, is this the right way?
Note: There are no parts of my name in the forbiddennames variable
pawn Код:
for( new i = 0; i < MAX_FORBIDDEN_NAMES; i ++ )
{
if( strfind(ForbiddenNames[i], GetName(playerid), true ) )
{
SendClientMessage(playerid, COLOR_ORANGE, " ** We found a forbidden word in your name! Please remove it and re-connect. ");
Kick(playerid);
return 1;
}
}
Note: There are no parts of my name in the forbiddennames variable