[Ajuda] Problema com TAG
#9

Quote:
Originally Posted by nxxT
Посмотреть сообщение
Kojak, este seu cуdigo estб horrнvel, se soubesse o que й identaзгo, saberia que o seu cуdigo estб horrнvel.

PHP код:
forward AtualizarChatBubble(playerid);
public 
AtualizarChatBubble(playerid) {
for(new 
x=0MAX_PLAYERSx++){
{
    if(
IsPlayerAdmin(playerid)) {
        
SetPlayerChatBubble(x"Logado RCON"DEFINA COR100.01000);
    }
    if(
pAdmin[playerid] == 5) {
        
SetPlayerChatBubble(x"Admnistrador %s"DEFINA COR100.01000);
    }
    if(
pAdmin[playerid] == 4) {
        
SetPlayerChatBubble(x"Admnistrador %s"DEFINA COR100.01000);
    }
    if(
pAdmin[playerid] == 3) {
        
SetPlayerChatBubble(x"Admnistrador %s"DEFINA COR100.01000);
    }
    if(
pAdmin[playerid] == 2) {
        
SetPlayerChatBubble(x"Admnistrador %s"DEFINA COR100.01000);
    }
    if(
pAdmin[playerid] == 1) {
        
SetPlayerChatBubble(x"Admnistrador %s"DEFINA COR100.01000);
    }
    if(
moderador[playerid]) {
        
SetPlayerChatBubble(x"Moderador"DEFINA COR100.01000);
    }
    return 
1;

para o que й nao precisa ser callback basta ser funcao.

O loop nao й preciso ai visto que й para colocar por playerid

quando for trabalhar com specifiers ( %d %s, etc.. ) tem de usar format

PHP код:
stock AtualizarChatBubble(playerid

    if(
IsPlayerAdmin(playerid)) 
        return 
SetPlayerChatBubble(playerid"Logado RCON"DEFINA COR100.01000); 
     
    switch(
pAdmin[playerid]) 
    { 
        case 
1..5:
            
SetPlayerChatBubble(playerid"Admnistrador"DEFINA COR100.01000); 
    } 
    if(
moderador[playerid]) 
        
SetPlayerChatBubble(playerid"Moderador"DEFINA COR100.01000); 
    return 
1

Reply


Messages In This Thread
Problema com TAG - by iTnTxGabrielx - 26.02.2015, 11:46
Re: Problema com TAG - by matheusspohr - 26.02.2015, 12:06
Re: Problema com TAG - by Marquito - 26.02.2015, 12:09
Re: Problema com TAG - by iTnTxGabrielx - 26.02.2015, 12:18
Re: Problema com TAG - by Kojak - 26.02.2015, 14:15
Re: Problema com TAG - by ProKillerpa - 26.02.2015, 14:38
Re: Problema com TAG - by nxxT - 26.02.2015, 14:40
Re: Problema com TAG - by Kojak - 26.02.2015, 14:42
Re: Problema com TAG - by PT - 26.02.2015, 15:43
Re: Problema com TAG - by iTnTxGabrielx - 26.02.2015, 16:10

Forum Jump:


Users browsing this thread: 3 Guest(s)