SA-MP Forums Archive
Dialog Messed -_-______- - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog Messed -_-______- (/showthread.php?tid=432231)



Dialog Messed -_-______- - RandomDude - 21.04.2013

Fixed



Re: Dialog Messed -_-______- - JackBurgani - 21.04.2013

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == Dialog_Music)
    {
    if(response)
    {
        switch(dialogid)
        {
            case 1:
            {
                switch(listitem)
                {
                    case 1: return SendClientMessage(playerid,ORANGE,"OKAY!");
                    case 2: return SendClientMessage(playerid,ORANGE,"OKAY!");
                    case 3: return SendClientMessage(playerid,ORANGE,"OKAY!");
                    case 4: return SendClientMessage(playerid,ORANGE,"OKAY!");
                    case 5: return SendClientMessage(playerid, ORANGE, "okay");
                    case 6: return SendClientMessage(playerid, ORANGE, "okay dokie");
                }
            }
        }
    }
    if(dialogid == Dialog_Wizkhalifa)
    {
    switch(dialogid)
    {
        if(response)
        {
        };
            if(listitem==0)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
            if(listitem==1)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
            if(listitem==2)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
            if(listitem==3)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
            if(listitem==4)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
            if(listitem==5)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
        }
    }
    return 0;
}
to
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
         case Dialog_music:
             {
                  if(response) {

                      switch(listitem)
                      {
                              case 1: return SendClientMessage(playerid,ORANGE,"OKAY!");
                              case 2: return SendClientMessage(playerid,ORANGE,"OKAY!");
                              case 3: return SendClientMessage(playerid,ORANGE,"OKAY!");
                              case 4: return SendClientMessage(playerid,ORANGE,"OKAY!");
                              case 5: return SendClientMessage(playerid, ORANGE, "okay");
                              case 6: return SendClientMessage(playerid, ORANGE, "okay dokie");
                      }
                  }
              }
         case Dialog_Wizkhalifa:
         {
              if(response)  {
                  switch(lsititem)
                   {
                         case 0:
                         {
                                 SendClientMessage(playerid,ORANGE,"OKAY!");
                         }
                         case 1:
                        {
                                 SendClientMessage(playerid,ORANGE,"OKAY!");
                        }
                         case 2:
                        {
                                  SendClientMessage(playerid,ORANGE,"OKAY!");
                        }
                         case 3:
                        {
                                  SendClientMessage(playerid,ORANGE,"OKAY!");
                        }
                         case 4:
                        {
                                   SendClientMessage(playerid,ORANGE,"OKAY!");
                        }
                        case 5:
                        {
                               SendClientMessage(playerid,ORANGE,"OKAY!");
                        }
                  }
             }
        }
    }
    return 0;
}



Re: Dialog Messed -_-______- - RandomDude - 21.04.2013

Quote:
Originally Posted by JackBurgani
Посмотреть сообщение
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == Dialog_Music)
    {
    if(response)
    {
        switch(dialogid)
        {
            case 1:
            {
                switch(listitem)
                {
                    case 1: return SendClientMessage(playerid,ORANGE,"OKAY!");
                    case 2: return SendClientMessage(playerid,ORANGE,"OKAY!");
                    case 3: return SendClientMessage(playerid,ORANGE,"OKAY!");
                    case 4: return SendClientMessage(playerid,ORANGE,"OKAY!");
                    case 5: return SendClientMessage(playerid, ORANGE, "okay");
                    case 6: return SendClientMessage(playerid, ORANGE, "okay dokie");
                }
            }
        }
    }
    if(dialogid == Dialog_Wizkhalifa)
    {
    switch(dialogid)
    {
        if(response)
        {
        };
            if(listitem==0)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
            if(listitem==1)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
            if(listitem==2)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
            if(listitem==3)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
            if(listitem==4)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
            if(listitem==5)
            {
                SendClientMessage(playerid,ORANGE,"OKAY!");
            }
        }
    }
    return 0;
}
to
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
         case Dialog_music:
             {
                  if(response) {

                      switch(listitem)
                      {
                              case 1: return SendClientMessage(playerid,ORANGE,"OKAY!");
                              case 2: return SendClientMessage(playerid,ORANGE,"OKAY!");
                              case 3: return SendClientMessage(playerid,ORANGE,"OKAY!");
                              case 4: return SendClientMessage(playerid,ORANGE,"OKAY!");
                              case 5: return SendClientMessage(playerid, ORANGE, "okay");
                              case 6: return SendClientMessage(playerid, ORANGE, "okay dokie");
                      }
                  }
              }
         case Dialog_Wizkhalifa:
         {
              if(response)  {
                  switch(lsititem)
                   {
                         case 0:
                         {
                                 SendClientMessage(playerid,ORANGE,"OKAY!");
                         }
                         case 1:
                        {
                                 SendClientMessage(playerid,ORANGE,"OKAY!");
                        }
                         case 2:
                        {
                                  SendClientMessage(playerid,ORANGE,"OKAY!");
                        }
                         case 3:
                        {
                                  SendClientMessage(playerid,ORANGE,"OKAY!");
                        }
                         case 4:
                        {
                                   SendClientMessage(playerid,ORANGE,"OKAY!");
                        }
                        case 5:
                        {
                               SendClientMessage(playerid,ORANGE,"OKAY!");
                        }
                  }
             }
        }
    }
    return 0;
}
Thank you but I fixed it already lol
thanks anyways