Dialog Mixed
#5

Quote:
Originally Posted by iLearner
Посмотреть сообщение
PHP код:
if(dialogid == D_SET)
{
    if (
response)
    {
        switch (
listitem)
        {
               case 
0:
            {
                
PlayerInfoplayerid ][ SET ] = 0;
                
GiveSet(playerid0);
                
SendClientMessage(playerid, -1"You got this set");
            }
            
ShowPlayerDialogplayeridD_SETDIALOG_STYLE_LIST"Set""Standard Set""Select""Cancel" );
        }
    }
}
if(
dialogid == D_TELE)
{
    if(
response)
    {
        switch (
listitem)
        {
               case 
0:
            {
                
SetPlayerPos(playerid2048.1663,-2261.8228,18.5524);
                
SetPlayerFacingAngle(playerid147.1641);
                
SetPlayerInterior(playerid,0);
                
SetCameraBehindPlayer(playerid);
                
SendClientMessage(playerid, -1"Teleported");
            }
        }
    }

Since both dialogs have 1 list item only, so whenever you'll open the dialog & select first item it will do the action according to the dialog (in case 2 it will teleport you).
Problem is same, whenever i choose 1st weapon set i got teleported to case 0;
Reply


Messages In This Thread
Dialog Mixed - by Hunud - 03.05.2017, 10:03
Re: Dialog Mixed - by aoky - 03.05.2017, 10:10
Re: Dialog Mixed - by iLearner - 03.05.2017, 10:11
Re: Dialog Mixed - by Hunud - 03.05.2017, 10:22
Re: Dialog Mixed - by Hunud - 03.05.2017, 10:32
Re: Dialog Mixed - by iLearner - 03.05.2017, 10:39
Re: Dialog Mixed - by Hunud - 03.05.2017, 10:45
Re: Dialog Mixed - by Logic_ - 03.05.2017, 10:53
Re: Dialog Mixed - by Hunud - 03.05.2017, 11:01
Re: Dialog Mixed - by Logic_ - 03.05.2017, 11:03

Forum Jump:


Users browsing this thread: 2 Guest(s)