[Ajuda] Underline
#1

como dexo o meu nome sem underline sу o meu nick tipo ADM Avenger??
Reply
#2

Se eu entendi bem, vocк quer deixar seu nome com espaзo, no samp.

Se for isso, nгo tem como.
Reply
#3

aqui um exemplo:
pawn Код:
public OnPlayerText(playerid, text[])
{

    new nick[24],
        string[128]
        ;

    GetPlayerName(playerid, nick, 24);

    for(new n; n < strlen(nick); ++n)
    {

        if (nick[n] == '_') nick[n] = ' ';

    }

    format(string, sizeof string, "%s: %s", nick, text);
    SendClientMessageToAll(-1, string);
    return 0;
}
Reply
#4

Nгo tem como vocк colocar espaзo no nome, mas tem como substituir para quando o player falar.

pawn Код:
public OnPlayerText(playerid, text[])
{
     new pName[MAX_PLAYER_NAME], string[128];
     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
     if(!strcmp(pName, "_", true))
     {
          for(new i = 0; i < MAX_PLAYER_NAME; ++i)
          {
               if(pName[i] == '_') pName[i] = ' ';
          }
     }
     format(string, sizeof(string), "%s: %s", pName, text);
     SendClientMessageToAll(COR, string);
     return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)