11.06.2016, 16:50
Here a function for you:
PHP код:
stock isCharInString(const tmp[],const chars[])
{
for(new i,buffer[1],l=strlen(chars); i<l; i++)
{
buffer[0] = chars[i];
if(strfind(tmp,buffer,false) != -1) return true;
}
return false;
}
//You can use it like this:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
if(isCharInString(tmp,"]<()[>"))
{
//Here some of the chars are in the name
}