Showplayerdialog problem
#1

-- To delete --
Reply
#2

pawn Код:
//You code

if(dialogid == 911) // Elevator Cops
    {
        if(GetCityPlayer(playerid,false) == 2)   // Elevator is in LS
        {
            if(gps_currentDest[playerid]==10) // Garage level
            {
                if(response==0) // Roof
                    {SetPlayerPosEx(playerid,1558.0886,-1675.5081,28.3955); SetPlayerVirtualWorld(playerid, 0);}
                if(response==1) // 1st floor
                    {SetPlayerPosEx(playerid,1558.71, -1712.25, -7.79); SetPlayerInterior(playerid, 6); SetPlayerVirtualWorld(playerid, 1); }
                return 1;
            }
            if(gps_currentDest[playerid]==11) // 1st floor
            {
                if(response==1) // Roof
                    {SetPlayerPosEx(playerid,1558.0886,-1675.5081,28.3955); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0);}
                if(response==0) // Garage
                    {SetPlayerPosEx(playerid,1524.4854,-1677.8744,6.2188); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); }
                return 1;
            }
            if(gps_currentDest[playerid]==12) // Roof
            {
                if(response==1) // 1st floor
                    {SetPlayerPosEx(playerid,1558.71, -1712.25, -7.79); SetPlayerInterior(playerid, 6); SetPlayerVirtualWorld(playerid, 1);}
                if(response==0) // garage
                    {SetPlayerPosEx(playerid,1524.4854,-1677.8744,6.2188); SetPlayerVirtualWorld(playerid, 0);}
                return 1;
            }
        }
    }

//Mine
if(dialogid == 911) // Elevator Cops
    {
        if(response)
        {
            if(GetCityPlayer(playerid,false) == 2)   // Elevator is in LS
            {
                if(gps_currentDest[playerid]==10) // Garage level
                {
                    if(response==0) // Roof
                        {SetPlayerPosEx(playerid,1558.0886,-1675.5081,28.3955); SetPlayerVirtualWorld(playerid, 0);}
                    if(response==1) // 1st floor
                        {SetPlayerPosEx(playerid,1558.71, -1712.25, -7.79); SetPlayerInterior(playerid, 6);       SetPlayerVirtualWorld(playerid, 1); }
                    return 1;
                }
                if(gps_currentDest[playerid]==11) // 1st floor
                {
                    if(response==1) // Roof
                        {SetPlayerPosEx(playerid,1558.0886,-1675.5081,28.3955); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0);}
                    if(response==0) // Garage
                        {SetPlayerPosEx(playerid,1524.4854,-1677.8744,6.2188); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); }
                    return 1;
                }
                if(gps_currentDest[playerid]==12) // Roof
                {
                    if(response==1) // 1st floor
                        {SetPlayerPosEx(playerid,1558.71, -1712.25, -7.79); SetPlayerInterior(playerid, 6); SetPlayerVirtualWorld(playerid, 1);}
                    if(response==0) // garage
                        {SetPlayerPosEx(playerid,1524.4854,-1677.8744,6.2188); SetPlayerVirtualWorld(playerid, 0);}
                    return 1;
                }
            }
       }
    }
Edit: P.S I didnt know if this was a MSGBOX or LIST so I made it as a msgbox. Tell me if you need the other one
Reply
#3

Hello !

First of all, thank you for your answer
I tried to switch my code with yours, the problem is that nothing change, nothing happens like before.

Do you or anyone else have an idea ?
Reply
#4

Quote:
Originally Posted by Kethrios
Посмотреть сообщение
Hello !

First of all, thank you for your answer
I tried to switch my code with yours, the problem is that nothing change, nothing happens like before.

Do you or anyone else have an idea ?
Are you using a MSGBOX or INPUT?
Reply
#5

I'm using both actually.
Reply
#6

Still having the issue, I'm not able to fix it apparetnly, can someone even explain to me what is wrong ?
Thanks.
Reply
#7

Up, thanks in advance.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)