I have a working function that removes non-english characters from a string, and I would like that if a player types /anúncio, instead of a non-existent command, I could transform it into /anuncio and the command would be validated.
I tried to do this, but it didn't work, the original command continues to be executed(OnPlayerCommandPerformed):
public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
{
ReplaceNonEnglishChars(cmd);
return 1;
}
I have a working function that removes non-english characters from a string, and I would like that if a player types /anúncio, instead of a non-existent command, I could transform it into /anuncio and the command would be validated.
I tried to do this, but it didn't work, the original command continues to be executed(OnPlayerCommandPerformed):