[Ajuda] Estou tendo um Problema
#1

Код:
	#if DESTAQUE_CHAT == 1
 	if(PlayerInfo[playerid][Admin] > 1)
  	{
    	format(DESStr,sizeof(DESStr),"[ADM]%s {CCFF00}[ID:{FFFFFF}%d{CCFF00}]:{FFFFFF} %s",Nome(playerid),playerid,text);
		SendClientMessageToAll(GetPlayerColor(playerid),DESStr);
		SetPlayerChatBubble(playerid,text,-1,80,4000);
     	return 0;
	}
	else
	if(pVip[playerid][1] > 1)
  	{
  		format(DESStr,sizeof(DESStr),"[VIP] %s {CCFF00}[ID:{FFFFFF}%d{CCFF00}]:{FFFFFF} %s",Nome(playerid),playerid,text);
		SendClientMessageToAll(GetPlayerColor(playerid),DESStr);
		SetPlayerChatBubble(playerid,text,-1,80,4000);
     	return 0;
	}
	else
	if(PlayerInfo[playerid][Admin] == 0 && pVip[playerid][1] == 0)
  	{
  		format(DESStr,sizeof(DESStr),"[PLAYER] %s {CCFF00}[ID:{FFFFFF}%d{CCFF00}]:{FFFFFF} %s",Nome(playerid),playerid,text);
		SendClientMessageToAll(GetPlayerColor(playerid),DESStr);
		SetPlayerChatBubble(playerid,text,-1,80,4000);
     	return 0;
	}
 	#endif
	return 1;
}
O code a cima citua oq o player e como vcs podem ver ;-; mas tipo o adm escreve - e aparece 2 vez oq ele falou ;-; tipo (admin) fulano - oi em baixo disso vai aparece dnv (admin) fulano - oi
poderia me ajudar ?
Reply
#2

Isso й um FS? Se sim, tente colocar o FS dentro do GM
Reply
#3

nao isso e um comando q ja esta na minha gm
Reply
#4

Tenta colocar return 0;
ali no fim do code!
PHP код:
    #if DESTAQUE_CHAT == 1
     
if(PlayerInfo[playerid][Admin] > 1)
      {
        
format(DESStr,sizeof(DESStr),"[ADM]%s {CCFF00}[ID:{FFFFFF}%d{CCFF00}]:{FFFFFF} %s",Nome(playerid),playerid,text);
        
SendClientMessageToAll(GetPlayerColor(playerid),DESStr);
        
SetPlayerChatBubble(playerid,text,-1,80,4000);
         return 
0;
    }
    else
    if(
pVip[playerid][1] > 1)
      {
          
format(DESStr,sizeof(DESStr),"[VIP] %s {CCFF00}[ID:{FFFFFF}%d{CCFF00}]:{FFFFFF} %s",Nome(playerid),playerid,text);
        
SendClientMessageToAll(GetPlayerColor(playerid),DESStr);
        
SetPlayerChatBubble(playerid,text,-1,80,4000);
         return 
0;
    }
    else
    if(
PlayerInfo[playerid][Admin] == && pVip[playerid][1] == 0)
      {
          
format(DESStr,sizeof(DESStr),"[PLAYER] %s {CCFF00}[ID:{FFFFFF}%d{CCFF00}]:{FFFFFF} %s",Nome(playerid),playerid,text);
        
SendClientMessageToAll(GetPlayerColor(playerid),DESStr);
        
SetPlayerChatBubble(playerid,text,-1,80,4000);
         return 
0;
    }
     
#endif
        //aqui \/
    
return 0;

Reply
#5

Ta vou tentar aqui
Reply
#6

Quote:
Originally Posted by ReDKiiL
Посмотреть сообщение
Tenta colocar return 0;
ali no fim do code!
PHP код:
    #if DESTAQUE_CHAT == 1
     
if(PlayerInfo[playerid][Admin] > 1)
      {
        
format(DESStr,sizeof(DESStr),"[ADM]%s {CCFF00}[ID:{FFFFFF}%d{CCFF00}]:{FFFFFF} %s",Nome(playerid),playerid,text);
        
SendClientMessageToAll(GetPlayerColor(playerid),DESStr);
        
SetPlayerChatBubble(playerid,text,-1,80,4000);
         return 
0;
    }
    else
    if(
pVip[playerid][1] > 1)
      {
          
format(DESStr,sizeof(DESStr),"[VIP] %s {CCFF00}[ID:{FFFFFF}%d{CCFF00}]:{FFFFFF} %s",Nome(playerid),playerid,text);
        
SendClientMessageToAll(GetPlayerColor(playerid),DESStr);
        
SetPlayerChatBubble(playerid,text,-1,80,4000);
         return 
0;
    }
    else
    if(
PlayerInfo[playerid][Admin] == && pVip[playerid][1] == 0)
      {
          
format(DESStr,sizeof(DESStr),"[PLAYER] %s {CCFF00}[ID:{FFFFFF}%d{CCFF00}]:{FFFFFF} %s",Nome(playerid),playerid,text);
        
SendClientMessageToAll(GetPlayerColor(playerid),DESStr);
        
SetPlayerChatBubble(playerid,text,-1,80,4000);
         return 
0;
    }
     
#endif
        //aqui \/
    
return 0;


Deu certo aqui vllw mesmo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)