[Ajuda] Ajuda Bug Chat
#1

Bom Eu Venho Pedir uma Ajuda a Voces tipo eu quero por o id antes do nick no chat isso eu ja consegui mais o problema e que quero deixar ID:%i para branco para aparecer assim branco e o nick com as cores aleatorias msm da score board normal vo mandar os codigos para voces entenderem melhor e me ajudar

olha ele assim fica o id e o nick com a cor aleatoria

//Chat com ID
new StrText[129], nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
format(StrText, sizeof(StrText),"[ID:%i] %s: {FFFFFF}%s", playerid, nome, text);
SendClientMessageToAll(GetPlayerColor(playerid), StrText);
return 0;
}
so que eu queria deixar assim o com o ID Branco й somente o Nick com a Cor Aleatoria da Score Board Me Ajudem Vlw Ai Gente

//Chat com ID
new StrText[129], nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
format(StrText, sizeof(StrText),"[{F9FAF5}ID:%i] %s: {FFFFFF}%s", playerid, nome, text);
SendClientMessageToAll(GetPlayerColor(playerid), StrText);
return 0;
}

Reply
#2

PHP Code:
new StrText[129], nome[MAX_PLAYER_NAME];
GetPlayerName(playeridnomesizeof(nome));
format(StrTextsizeof(StrText),"%s: [{F9FAF5}ID:%i]: {FFFFFF}%s"playeridnometext);
SendClientMessageToAll(GetPlayerColor(playerid), StrText);
return 
0;

Reply
#3

Man ASSIM EU SEI FAZER TO FALANDO COM O ID ANTES DO NICK
Reply
#4

Quote:
Originally Posted by yNexus
View Post
PHP Code:
new StrText[129], nome[MAX_PLAYER_NAME];
GetPlayerName(playeridnomesizeof(nome));
format(StrTextsizeof(StrText),"%s: [{F9FAF5}ID:%i]: {FFFFFF}%s"playeridnometext);
SendClientMessageToAll(GetPlayerColor(playerid), StrText);
return 
0;

EU TO PRECISANDO COM O ID ANTES DO NICK NAO DPS
Reply
#5

Quote:
Originally Posted by yNexus
View Post
PHP Code:
new StrText[129], nome[MAX_PLAYER_NAME];
GetPlayerName(playeridnomesizeof(nome));
format(StrTextsizeof(StrText),"%s: [{F9FAF5}ID:%i]: {FFFFFF}%s"playeridnometext);
SendClientMessageToAll(GetPlayerColor(playerid), StrText);
return 
0;

Eu coloco isso em?? ↓
pawn Code:
public OnPlayerText(playerid, text[])
Quote:
Originally Posted by EquipeBMR
View Post
Man ASSIM EU SEI FAZER TO FALANDO COM O ID ANTES DO NICK
Mano eu acho que й so inverter.
pawn Code:
format(StrText, sizeof(StrText),"[{F9FAF5}ID:%i]: %s:  {FFFFFF}%s", playerid, nome, text);
Reply
#6

NAO DEU CERTO MAN CONTINUOU A MSM MERDA
Reply
#7

No meu nгo obteve resultando eu coloquei so que nгo apareceu o ID, Esperando alguйm que saiba como arrumar.
-
EquipeBMR desliga o caps mano?
Reply
#8

Alguйm da um help pra nois?
Reply
#9

ve se e isso:

pawn Code:
new pttext[128];
GetPlayerName(playerid, pttext, MAX_PLAYER_NAME);
format(pttext, sizeof(pttext),"{FFFFFF}[ID:%d] {%06x}%s: {FFFFFF}%s", playerid, (GetPlayerColor(playerid) >>> 8), pttext, text);
SendClientMessageToAll(GetPlayerColor(playerid), pttext);
Reply
#10

Na minha Gm fico certinho, do jeito que eu queria » Nick:[ID]
Vк se funfa na sua Gm ai, Faz umas adptaзгo!

pawn Code:
public OnPlayerText(playerid, text[])
{
new string[200];
format(string,sizeof(string),"[%d] %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
new string2[128];
format(string2, 128,"%s[%d]: %s", aname, playerid,text);
printf("%s",string2);

   return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)