How can i remove the "_" from the name in the chat?
#2

Talking Animation, put this code in OnPlayerText
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  {
    ApplyAnimation(playerid, "MISC", "Idle_Chat_02", 4.1, 0, 1, 1, 1, 1);
  }
To remove the _
Paste this stock out of a callback
pawn Код:
stock strreplace(string[], find, replace)
{
    for(new i=0; string[i]; i++)
    {
        if(string[i] == find)
        {
            string[i] = replace;
        }
    }
}
Then in OnPlayerText again
pawn Код:
new name[24];
GetPlayerName(playerid, name, sizeof(name));
strreplace(name, '_', ' ');
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)