Upando comando
#1

Pessoal fis o comando do /relato mais tipow

o adm recebe o relato mais so que eu queria que quando recebece ele tambem soltace um somsinho

eu tentei colocar mais dava erro nгo sei pq ta dando erro

se alguem corrigir pramim me explica pra eu saber com o // por favor


PHP код:
        if(dialogid == 9519// veja que o id usado para criar й o mesmo usado para manusea-lo
        
{
            if(
response//resposta do botгo 1 (esquerdo) que no caso й 'enviar'
            
{
                new
                    
wiiStr[128], //string nova
                    
wiiN[MAX_PLAYER_NAME]//string nova
                
;
                
GetPlayerName(playeridwiiNsizeofwiiN ));//Getando o seu nome para 'wiiN'
                
for(new iGetMaxPlayers(); xi++)//fazendo um loop para identificar admins
                
{
                    if(
PlayerInfo[i][dono] >= 1//se tiver admins level 1 pra cima ele continua...
                    
//troque PlayerInfo pela sua variбvel de admins...
                        
format(wiiStr,sizeofwiiStr ), "URGENCIA DE %s: %s",wiiNinputtext); //format para pegar o seu nome e o seu texto.
                        
SendClientMessage(iYELLOWwiiStr);//Enviando o texto para os admins.
                        
return 1;
                    }
                    
ShowPlayerDialog(i9519DIALOG_STYLE_MSGBOX"Info""Menssagem enviada ""Ok""Sair");
                }
            }
            return 
1;
        } 
outra o ShowPlayerDialog(i, 9519, DIALOG_STYLE_MSGBOX, "Info", "Menssagem enviada ", "Ok", "Sair");

nгo ta aparencendo quando eu envio

alguem sabe arrumar isso tambem

ok vlw
Reply
#2

Para botar Som > https://sampwiki.blast.hk/wiki/PlayerPlaySound
Reply
#3

ja fis isso ja pus

mais so aparece o som pra quem usa o comando

o adm nгo recebe o som
Reply
#4

Quote:
Originally Posted by SERRA93
Посмотреть сообщение
ja fis isso ja pus

mais so aparece o som pra quem usa o comando

o adm nгo recebe o som
Tipo, vocк vai usar o:
pawn Код:
PlayerPlaySound(playerid,...
Isso vai ser usado para quem digitar o comando, no caso, playerid.
Se vocк quizer que pra quem recebe o comando (wiiStr) que й no caso o admin, tambйm receba o som, vocк deve usar tambйm, so que em vez de playerid, serб a variбvel wiiStr:
pawn Код:
PlayerPlaySound(wiiStr,...
Entende?
Reply
#5

migгo

arrumei la
troquei o player id por wiiStr mais deu isso

undefined symbol "wiiStr"

qual motivo ?
Reply
#6

Me atrapalhei.
Nгo й wiiStr

Й wiiN
Reply
#7

fatal error 017: undefined symbol "wiiN"
Reply
#8

Acho que jб vi esse negocio de wiiStr/wiiN em algum lugar.(MyStrings detected.)

Sу um detalhe
pawn Код:
ShowPlayerDialog(i, 9519, DIALOG_STYLE_MSGBOX, "Info", "Menssagem enviada ", "Ok", "Sair");
Estб dentro do loop, ou seja vai abrir a caixa dialog para todos os players conectados!

Em questгo ao 'sonzinho.'
pawn Код:
PlayerPlaySound(i, 1130, 0.0, 0.0, 10.0);
Teste
Reply
#9

Vocк tб colocando o PlayerPlaySound em qual lugar?
Aliбs, me manda o cуdigo completo que tб com o erro.
Reply
#10

PHP код:
               if(listitem == 2)
                {
                if(
PlayerInfo[playerid][pDonateRank] == || PlayerInfo[playerid][pDonateRank] == || PlayerInfo[playerid][pDonateRank] == 3)
                    {
                        if(
PlayerInfo[playerid][pAge] == 0)
                        {
                            
PlayerInfo[playerid][pAge] = 1;
                            
ShowPlayerDialog(playerid124DIALOG_STYLE_MSGBOX,"Sucesso.","Vocк entrou na fila de atendimento, agora aguarde.","OK","");
                            
PlayerPlaySound(playerid10560.00.00.0);
                        }
                        else{
                        
ShowPlayerDialog(playerid124DIALOG_STYLE_MSGBOX,"Fail","Vocк ja entrou na fila de atendimento, Aguarde ser atendito","OK","");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        }
                        
ShowPlayerDialog(playerid13DIALOG_STYLE_MSGBOX"Sucesso""Vocк solicitou atendimento vip, e serб atendido o mais rapido possivel, obrigado por ter comprado vip.""Ok""");
                        
GetPlayerName(playerid,sendername,sizeof(sendername));
                        
format(stringsizeof(string), "[!!!!!!] O %s SOLICITOU ATENDIMENTO VIP "sendername);
                        
format(stringsizeof(string), "[!!!!!!] O %s SOLICITOU ATENDIMENTO VIP "sendername);
                        
format(stringsizeof(string), "[!!!!!!] O %s SOLICITOU ATENDIMENTO VIP "sendername);
                        
format(stringsizeof(string), "[!!!!!!] O %s SOLICITOU ATENDIMENTO VIP "sendername);
                        
PlayerPlaySound(wiiN10560.00.00.0);
                        
SendAdminMessage(COLOR_REDstring);
                        }
                        else
                        {
                            
ShowPlayerDialog(playerid13DIALOG_STYLE_MSGBOX"Fail""Vocк nгo e vip""Ok""");
                            
PlayerPlaySound(playerid10560.00.00.0);
                            return 
1;
                        }
    
            }
        }
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)