[Duda] ID al hablar.
#1

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.
Reply
#2

Tienes ke colocarlo asi :

{FFFFFF}1 {CC0000}Keez: {FFFFFF}Hola
Reply
#3

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;
}
Reply
#4

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;
}
Reply
#5

No pues gracias, nunca avнa pedido ayuda, pero estб vez si y se dar gracias.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)