[Duda] ID al hablar. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Duda] ID al hablar. (
/showthread.php?tid=381272)
[Duda] ID al hablar. -
Keez - 29.09.2012
Hola, bueno como verбn el titulo de este tema es el siguiente "[Duda] ID al hablar."
Bueno voy al grano, eh intentado de todo pero no logro hacer lo siguiente.
Este es un ejemplo:
1 Keez: Hola
Supongamos que lo negro es blanco.
Me gustarнa hacer que el ID sea de color blanco el nombre del color que usa y el mensaje en blanco.
Logre hacer el ID al inicio pero no lo puedo poner en color blanco, si alguien me ayuda se lo agradecerнa mucho.
Espero y me allб explicado bien, un saludo.
Respuesta: [Duda] ID al hablar. -
OTACON - 29.09.2012
Tienes ke colocarlo asi :
{FFFFFF}1 {CC0000}Keez: {FFFFFF}Hola
Respuesta: [Duda] ID al hablar. -
CaptainMactavish - 29.09.2012
pawn Код:
public OnPlayerText(playerid, text[])
{
static szText[128], szName[MAX_PLAYER_NAME];
GetPlayerName(playerid, szName, MAX_PLAYER_NAME);
format(szText, 128, "%d {%06x}%s: %s", playerid, (GetPlayerColor(playerid) & 0x00000000) >>> 8, szName, text);
SendClientMessage(playerid, -1, szText);
return 0;
}
Respuesta: [Duda] ID al hablar. -
Jovanny - 29.09.2012
Quote:
Originally Posted by CaptainMactavish
pawn Код:
public OnPlayerText(playerid, text[]) { static szText[128], szName[MAX_PLAYER_NAME]; GetPlayerName(playerid, szName, MAX_PLAYER_NAME); format(szText, 128, "%d {%06x}%s: %s", playerid, (GetPlayerColor(playerid) & 0x00000000) >>> 8, szName, text); SendClientMessage(playerid, -1, szText); return 0; }
|
Debes quitar el 0x00000000 porque si no retorna puros 0
pawn Код:
public OnPlayerText(playerid, text[])
{
static szText[128], szName[MAX_PLAYER_NAME];
GetPlayerName(playerid, szName, MAX_PLAYER_NAME);
format(szText, 128, "%d {%06x}%s: %s", playerid, GetPlayerColor(playerid) >>> 8, szName, text);
SendClientMessage(playerid, -1, szText);
return 0;
}
Respuesta: [Duda] ID al hablar. -
Keez - 29.09.2012
No pues gracias, nunca avнa pedido ayuda, pero estб vez si y se dar gracias.