Showing a certain dialog after responding to a dialog
#6

Nevermind, I got it; I just did it like this:

pawn Код:
if(dialogid == SOME_DIALOG)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {
                    if(PlayerInfo[playerid][pRank] == 1)
                    {
                        ShowPlayerDialog(...)
                    }
                    else if(PlayerInfo[playerid][pRank] == 2)
                    {
                        ShowPlayerDialog(...)
                    }
                    else if(PlayerInfo[playerid][pRank] == 3)
                    {
                        ShowPlayerDialog(...)
                    }
                    else if(PlayerInfo[playerid][pRank] >= 4)
                    {
                        ShowPlayerDialog(...)
                    }
                }
            }
            return 1;
        }
    }
Edit 2: I forget that if I post once again a reply it is going to make a new one, my bad. By the way whoever helped me receives a rep as a thanks.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)