Symbol nickname
#4

Here a function for you:

PHP код:
stock isCharInString(const tmp[],const chars[])
{
    for(new 
i,buffer[1],l=strlen(chars); i<li++)
    {
        
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

Reply


Messages In This Thread
Symbol nickname - by 2k16 - 11.06.2016, 15:38
Re: Symbol nickname - by ]Rafaellos[ - 11.06.2016, 15:45
Re: Symbol nickname - by Sjn - 11.06.2016, 16:25
Re: Symbol nickname - by Kaliber - 11.06.2016, 16:50

Forum Jump:


Users browsing this thread: 2 Guest(s)