[Ajuda] ID depois do Nome no Chat
#1

Bom, tou precisando de uma pequena ajuda, jб procurei nos quatro cantos do ****** e nenhum que encontrei foi o meu caso.
Simples, como que tira o ID depois do nick?

IMG:
Reply
#2

Poste seu

pawn Код:
public OnPlayerText(playerid, text[])
Reply
#3

Quote:
Originally Posted by Primeiramente nгo sei mto o que vc quer, ou quer tirar o id dai ou quer por Antes do Nome se for tirar tentar assim
pawn Код:
public OnPlayerText(playerid, text[]) // Public onde estб o chat
agora dentro da public

pawn Код:
format(string, sizeof(string), "• %s {FFFFFF} %s", playerid, GetPlayerNameEx(playerid), text);
Quote:
Originally Posted by Tenta assim :D, se nгo der certo tento te mostrar de outros jeitos. Skype: cvv.xiori
Reply
#4

Quote:
Originally Posted by xioriscripter
Посмотреть сообщение
pawn Код:
public OnPlayerText(playerid, text[]) // Public onde estб o chat
agora dentro da public

pawn Код:
format(string, sizeof(string), "• %s {FFFFFF} %s", playerid, GetPlayerNameEx(playerid), text);
essa

pawn Код:
GetPlayerNameEx(playerid)
e uma variavel do seu gm, talvez n seja do dele

o que o cara pediu foi isto

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[256], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);

    format(string, sizeof(string), "%s[ID: %d] diz: %s", name, playerid, text);
    SendPlayerMessageToAll(playerid, string);

    return 0;
}
Reply
#5

Brigadгo pelas respostas, mas oque ajudou mesmo foi sу Public +rep para todos.

Minha linha tava assim:

pawn Код:
format(string, sizeof(string), "%s[%d] diz: %s", PlayerName(playerid), playerid, text);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)