[Ajuda] Chatґs com cores erradas
#1

Boas malta,eu tenho um chat,e ,no code do chat no pawn,achoq ue esta tudo direito.
Code chat :
pawn Код:
if(!IsPlayerInAnyVehicle(playerid) && AdminDuty[playerid] != 1 && GMDuty[playerid] != 10 || IsABike(GetPlayerVehicleID(playerid)) && AdminDuty[playerid] != 25 && GMDuty[playerid] != 10)
        {
            format(string, sizeof(string), "%s diz: %s", GetPlayerNameEx(playerid), text);
            ProxDetector(25.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            TalkLog(string);
            format(strings, sizeof(strings), "diz: %s", text);
            SetPlayerChatBubble(playerid, strings, COLOR_FADE1, 25.0, 4000);
            ApplyAnimation(playerid,"PED","IDLE_CHAT",2.0,1,0,0,1,1);
            SetTimerEx("Anim",1500, false, "d", playerid);
        }
        else if(AdminDuty[playerid] >= 22)
        {
            format(string, sizeof(string), "((%s diz: %s))", GetPlayerNameEx(playerid), text);
            ProxDetector(25.0, playerid, string,COLOR_OWNER,COLOR_OWNER,COLOR_OWNER,COLOR_OWNER,COLOR_OWNER);
            TalkLog(string);
        }
        else if(AdminDuty[playerid] >= 21)
        {
            format(string, sizeof(string), "((%s diz: %s))", GetPlayerNameEx(playerid), text);
            ProxDetector(25.0, playerid, string,COLOR_LADUTY,COLOR_LADUTY,COLOR_LADUTY,COLOR_LADUTY,COLOR_LADUTY);
            TalkLog(string);
        }
        else if(AdminDuty[playerid] >= 21)
        {
            format(string, sizeof(string), "((%s diz: %s))", GetPlayerNameEx(playerid), text);
            ProxDetector(25.0, playerid, string,COLOR_HADUTY,COLOR_HADUTY,COLOR_HADUTY,COLOR_HADUTY,COLOR_HADUTY);
            TalkLog(string);
        }
        else if(AdminDuty[playerid] >= 1)
        {
            format(string, sizeof(string), "((%s diz: %s))", GetPlayerNameEx(playerid), text);
            ProxDetector(25.0, playerid, string,COLOR_ADMINDUTY,COLOR_ADMINDUTY,COLOR_ADMINDUTY,COLOR_ADMINDUTY,COLOR_ADMINDUTY);
            TalkLog(string);
        }
        else if(GMDuty[playerid] >= 1)
        {
            format(string, sizeof(string), "((%s diz: %s))", GetPlayerNameEx(playerid), text);
            ProxDetector(25.0, playerid, string,COLOR_GMDUTY,COLOR_GMDUTY,COLOR_GMDUTY,COLOR_GMDUTY,COLOR_GMDUTY);
            TalkLog(string);
        }
        else
        {
            if(CarWindowStatus[GetPlayerVehicleID(playerid)] == 1)
            {
                format(string, sizeof(string), "[Vidros Abertos] %s diz: %s", GetPlayerNameEx(playerid), text);
                ProxDetector(25.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                TalkLog(string);
            }
            else
            {
                format(string, sizeof(string), "[Vidros Fechados] %s diz: %s", GetPlayerNameEx(playerid), text);
                ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                TalkLog(string);
            }
        }
        return 0;
    }
    return 1;
Estoua ter problemas com o chat dos admin,eu queria,que admins nivel 1 atй 20,a cor do chat era vermelhos,adims nivel 21,a cor do chat verde,admin nivel 22,cor do chat azul,admin nivel 25 cor do chat verde,eu ja meti tudo direitihno,so que apareзe,o chat dos admins todo vermelho,o chat de admins й vermelho para todos os niveis,e eu nao queria isso...
Reply
#2

passa o define das cores...por exemplo #define COLOR_OWNER (CODE DA COR)
Reply
#3

pawn Код:
//==================================[cores Importantes]=====================================
#define COLOR_TENTAR 0x68228BBB // cor do tentar
#define COLOR_RED 0xB30000BB //COR DA INTERFACE
#define COLOR_ADMINDUTY 0xFF000000 //COR ADMIN
#define COLOR_GMDUTY 0xDAA52000 //COR GM
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_NEWS 0xFFA500AA
#define COLOR_OOC 0xE0FFFFAA // COR CHAT OOC
#define COLOR_NEWOOC 0x0080FFAA //COR CHAT OOC /o
#define COLOR_HADUTY 0x008F00BB //COR HEAD-ADMIN
#define COR_DARKVERDE 0x12900BBF
#define COLOR_ME 0xA7105DEF
#define COLOR_OWNER 0x00FF00AA // COR OWNER
#define COLOR_LADUTY 0x00FFFFBB //COR LEAD-ADMIN
Reply
#4

hmmm...malz nгo encontrei o erro talvez hб um erro no seu arquivo de AMX =/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)