SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 29/06/2020, 01:56 PM   #1
KoewBxBcraFt
Little Clucker
 
KoewBxBcraFt's Avatar
 
Join Date: Jun 2019
Location: Brasil/ceara/cedro/zona-rural
Posts: 46
Reputation: 0
Default Problema em dialog response

Nao entendi os erros;-; se poder me ajudar ta ai a linha do erro:

PHP Code:

if(dialogid == DIALOG_RADIO)
    {
        if(
response)
    {
    if(
listitem == 0)    
    {
        
PlayAudioStreamForPlayer(playerid"http://78.31.65.20:8080/dance.mp3");
    
SetPlayerAttachedObject(playerid52226180.00000.00000.00000.00000.00000.00001.00001.00001.00000xFFFFFFFF0xFFFFFFFF);
    }
    if(
listitem == 1//FUNK
    
{
    
PlayAudioStreamForPlayer(playerid,"http://stream.zenolive.com/sxqqgnqpn3quv");
        
SetPlayerAttachedObject(playerid52226180.00000.00000.00000.00000.00000.00001.00001.00001.00000xFFFFFFFF0xFFFFFFFF);
    }
    if(
listitem == 2//FORRO
    
{
    
PlayAudioStreamForPlayer(playerid,"http://stream.zeno.fm/74uhrt6pn3quv");
        
SetPlayerAttachedObject(playerid52226180.00000.00000.00000.00000.00000.00001.00001.00001.00000xFFFFFFFF0xFFFFFFFF);
    }
    if(
listitem == 3//RÁDIO HITS
    
{
    
PlayAudioStreamForPlayer(playerid,"http://stream.zeno.fm/8qtdd0nnf6quv");
        
SetPlayerAttachedObject(playerid52226180.00000.00000.00000.00000.00000.00001.00001.00001.00000xFFFFFFFF0xFFFFFFFF);
    }
    if(
listitem == 4// TRAP 1 HORA
    
{
    
PlayAudioStreamForPlayer(playerid"https://bmdl.podbean.com/mf/play/oa9jqy/trap.mp3");
        
SetPlayerAttachedObject(playerid52226180.00000.00000.00000.00000.00000.00001.00001.00001.00000xFFFFFFFF0xFFFFFFFF);
    }
    if(
listitem == 5)// COELHO MC
    
{
    
PlayAudioStreamForPlayer(playerid"https://bmdl.podbean.com/mf/play/g3ag8s/cuei.mp3");
        
SetPlayerAttachedObject(playerid52226180.00000.00000.00000.00000.00000.00001.00001.00001.00000xFFFFFFFF0xFFFFFFFF);
    }
    if(
listitem == 6)//PARAR MUSICA
    
{
    
RemovePlayerAttachedObject(playerid5);
        
StopAudioStreamForPlayer(playerid);
    }
   else
    {
    
SendClientMessage(playeridVERMELHO"você cancelou");
    }
    }
    }
    }
    return 
1

__________________
KoewBxBcraFt is offline   Reply With Quote
Old 29/06/2020, 02:19 PM   #2
Hazard
Big Clucker
 
Hazard's Avatar
 
Join Date: May 2020
Location: Brazil
Posts: 98
Reputation: 1
Default Re: Problema em dialog response

manda os erros, e as linhas dele
__________________
Hazard is offline   Reply With Quote
Old 29/06/2020, 02:36 PM   #3
SkolPlay
Big Clucker
 
Join Date: Aug 2016
Posts: 145
Reputation: 0
Default Re: Problema em dialog response

pawn Code:
#define DIALOG_RADIO 777

 if(dialogid == DIALOG_RADIO)
    {
        if(response)
    {
    if(listitem == 0)
    {
     PlayAudioStreamForPlayer(playerid, "http://78.31.65.20:8080/dance.mp3");
     SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 1) //FUNK
    {
      PlayAudioStreamForPlayer(playerid,"http://stream.zenolive.com/sxqqgnqpn3quv");
      SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 2) //FORRO
    {
      PlayAudioStreamForPlayer(playerid,"http://stream.zeno.fm/74uhrt6pn3quv");
      SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 3) //RÁDIO HITS
    {
     PlayAudioStreamForPlayer(playerid,"http://stream.zeno.fm/8qtdd0nnf6quv");
     SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 4) // TRAP 1 HORA
    {
     PlayAudioStreamForPlayer(playerid, "https://bmdl.podbean.com/mf/play/oa9jqy/trap.mp3");
     SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 5)// COELHO MC
    {
     PlayAudioStreamForPlayer(playerid, "https://bmdl.podbean.com/mf/play/g3ag8s/cuei.mp3");
     SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 6)//PARAR MUSICA
    {
     RemovePlayerAttachedObject(playerid, 5);
     StopAudioStreamForPlayer(playerid);
    }
    else
    {
    SendClientMessage(playerid, VERMELHO, "você cancelou");
    }
    }
    }
 return 1;
}

Tenta ai
SkolPlay is offline   Reply With Quote
Old 29/06/2020, 02:53 PM   #4
KoewBxBcraFt
Little Clucker
 
KoewBxBcraFt's Avatar
 
Join Date: Jun 2019
Location: Brasil/ceara/cedro/zona-rural
Posts: 46
Reputation: 0
Default Re: Problema em dialog response

Quote:
Originally Posted by SkolPlay View Post
pawn Code:
#define DIALOG_RADIO 777

 if(dialogid == DIALOG_RADIO)
    {
        if(response)
    {
    if(listitem == 0)
    {
     PlayAudioStreamForPlayer(playerid, "http://78.31.65.20:8080/dance.mp3");
     SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 1) //FUNK
    {
      PlayAudioStreamForPlayer(playerid,"http://stream.zenolive.com/sxqqgnqpn3quv");
      SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 2) //FORRO
    {
      PlayAudioStreamForPlayer(playerid,"http://stream.zeno.fm/74uhrt6pn3quv");
      SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 3) //RÁDIO HITS
    {
     PlayAudioStreamForPlayer(playerid,"http://stream.zeno.fm/8qtdd0nnf6quv");
     SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 4) // TRAP 1 HORA
    {
     PlayAudioStreamForPlayer(playerid, "https://bmdl.podbean.com/mf/play/oa9jqy/trap.mp3");
     SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 5)// COELHO MC
    {
     PlayAudioStreamForPlayer(playerid, "https://bmdl.podbean.com/mf/play/g3ag8s/cuei.mp3");
     SetPlayerAttachedObject(playerid, 5, 2226, 18, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFFFFFFFF, 0xFFFFFFFF);
    }
    if(listitem == 6)//PARAR MUSICA
    {
     RemovePlayerAttachedObject(playerid, 5);
     StopAudioStreamForPlayer(playerid);
    }
    else
    {
    SendClientMessage(playerid, VERMELHO, "você cancelou");
    }
    }
    }
 return 1;
}

Tenta ai
Oque você mudou?
__________________
KoewBxBcraFt is offline   Reply With Quote
Old 29/06/2020, 03:15 PM   #5
SkolPlay
Big Clucker
 
Join Date: Aug 2016
Posts: 145
Reputation: 0
Default Re: Problema em dialog response

Quote:
Originally Posted by KoewBxBcraFt View Post
Oque você mudou?

Adicionei assim:
pawn Code:
#define DIALOG_RADIO 777

E retirei um } no final
SkolPlay is offline   Reply With Quote
Old 29/06/2020, 08:32 PM   #6
MateGPlay
Big Clucker
 
MateGPlay's Avatar
 
Join Date: Jan 2018
Location: Florianópolis, Santa Catarina
Posts: 112
Reputation: 1
Default Re: Problema em dialog response

PHP Code:
#define DIALOG_RADIO 4 //id da sua dialog no topo da gm

new const radios[][128] = {
    
"http://78.31.65.20:8080/dance.mp3",
    
"http://stream.zenolive.com/sxqqgnqpn3quv",
    
"http://stream.zeno.fm/74uhrt6pn3quv",
    
"http://stream.zeno.fm/8qtdd0nnf6quv",
    
"https://bmdl.podbean.com/mf/play/oa9jqy/trap.mp3",
    
"https://bmdl.podbean.com/mf/play/g3ag8s/cuei.mp3" 
}; //suas radios

public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DIALOG_RADIO)
    {
        if(!
response)
            return 
SendClientMessage(playeridCOLOR_RED"Escolha de Radio Cancelada");
        if(
listitem == sizeof(radios)) {
            
RemovePlayerAttachedObject(playerid5);
            
StopAudioStreamForPlayer(playerid);
        }
        else {
            
PlayAudioStreamForPlayer(playeridradios[listitem]);
            
SetPlayerAttachedObject(playerid52226180.00000.00000.00000.00000.00000.00001.00001.00001.00000xFFFFFFFF0xFFFFFFFF);
        }
        return 
1
    }
    return 
1;

__________________
MateGPlay is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
response a dialog with another defined dialog gotwarzone Scripting Help 17 07/10/2013 07:57 PM
Need help with dialog response ZBits Scripting Help 6 07/07/2012 06:43 AM
Dialog response not Sending Message [Input Dialog] Deal-or-die Scripting Help 8 08/05/2012 01:10 PM
Need help with Dialog response SpiderWalk Help Archive 1 22/05/2011 07:01 AM
[RESOLVIDO] Problema com o Dialog Response GuikBretas Português/Portuguese 6 15/03/2010 03:57 PM


All times are GMT. The time now is 06:01 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.