SA-MP Forums Archive
[Ajuda] Ajuda SetPlayerChatBubble - 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: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Ajuda SetPlayerChatBubble (/showthread.php?tid=645991)



Ajuda SetPlayerChatBubble - WalterSantos - 08.12.2017

PHP код:
            if(PlayerDados[i][VIP] == 1)
            {
                
format(StringVIPsizeof(StringVIP), "VIPs/%s.ini"PlayerName(i));
                if(
DOF2_GetInt(StringVIP"CorTagAtivada") == 1)
                {
                    new 
stringtag[20];
                    
format(stringtagsizeof(stringtag), "0x%sFF"DOF2_GetString(StringVIP"CorTag")); //Jб tentei sу String
                    
SetPlayerChatBubble(i"VIP"stringtag50.010000);
                }
                else if(
DOF2_GetInt(StringVIP"CorTagAtivada") == 0)
                {
                    
SetPlayerChatBubble(i"VIP"0x9932CCFF50.010000);
                }
            } 
O Meu intuito era fazer a cor do Chat Bubble ser б que estava setada no "CorTag", mas sempre dб erro, e nгo sei outro jeito, se for possнvel fazer isso alguйm me ajude...

Erro: error: 035: argument type mismatch (argument 3)


Re: Ajuda SetPlayerChatBubble - DelK - 08.12.2017

Tenta assim.
PHP код:
SetPlayerChatBubble(i"VIP"DOF2_GetString(StringVIP"CorTag"), 50.010000); 



Re: Ajuda SetPlayerChatBubble - WalterSantos - 08.12.2017

Quote:
Originally Posted by DelK
Посмотреть сообщение
Tenta assim.
PHP код:
SetPlayerChatBubble(i"VIP"DOF2_GetString(StringVIP"CorTag"), 50.010000); 
Jб tentei... mesmo erro


Re: Ajuda SetPlayerChatBubble - JeffSantos2 - 08.12.2017

Код:
if(PlayerDados[i][VIP] == 1) 
            { 
                format(StringVIP, sizeof(StringVIP), "VIPs/%s.ini", PlayerName(i)); 
                if(DOF2_GetInt(StringVIP, "CorTagAtivada") == 1) 
                { 
                    new stringtag[20]; 
                    format(stringtag, sizeof(stringtag), "0x%sFF", DOF2_GetString(StringVIP, "CorTag")); //Jб tentei sу String 
                    SetPlayerChatBubble(i, "VIP", strval(stringtag), 50.0, 10000); 
                } 
                else if(DOF2_GetInt(StringVIP, "CorTagAtivada") == 0) 
                { 
                    SetPlayerChatBubble(i, "VIP", 0x9932CCFF, 50.0, 10000); 
                } 
            }



Re: Ajuda SetPlayerChatBubble - WalterSantos - 08.12.2017

Quote:
Originally Posted by JeffSantos2
Посмотреть сообщение
Код:
if(PlayerDados[i][VIP] == 1) 
            { 
                format(StringVIP, sizeof(StringVIP), "VIPs/%s.ini", PlayerName(i)); 
                if(DOF2_GetInt(StringVIP, "CorTagAtivada") == 1) 
                { 
                    new stringtag[20]; 
                    format(stringtag, sizeof(stringtag), "0x%sFF", DOF2_GetString(StringVIP, "CorTag")); //Jб tentei sу String 
                    SetPlayerChatBubble(i, "VIP", strval(stringtag), 50.0, 10000); 
                } 
                else if(DOF2_GetInt(StringVIP, "CorTagAtivada") == 0) 
                { 
                    SetPlayerChatBubble(i, "VIP", 0x9932CCFF, 50.0, 10000); 
                } 
            }
Obrigado mano.