Is it possible?
#7

Do you mean something like this:
pawn Код:
new string[128];
if(IsPlayerInAnyVehicle(playerid))
{
   string = "Nitro\n Restore Health\n Give Armor";
} else {
   string = "Restore Health\n Give Armor";
}
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Somathing",string,"Ok","Cancle");
You don't have to use format for those things.

At OnDialogResponse:
pawn Код:
if(dialogid == 1)
{
   if(!response) return 1;
   if(IsPlayerInAnyVehicle(playerid))
   {
       if(listitem == 0) //Nitro
       {
           //Code here
       }
       if(listitem == 1) //Restore Health
       {
           // Code here
       }
       if(listitem == 2) // Give armor
       {
           // Code here
        }
        return 1;
    }
    else
    {
        if(listitem == 0) //Restore health
        {
            //code here
        }
        if(listitem == 1) // Give armor
        {
             //code here
        }
        return 1;
     }
     return 1;
}
Reply


Messages In This Thread
Is it possible? - by Antonio144 - 06.05.2011, 17:47
Re: Is it possible? - by admantis - 06.05.2011, 17:52
Re: Is it possible? - by steki. - 06.05.2011, 17:53
Re: Is it possible? - by Antonio144 - 06.05.2011, 17:57
Re: Is it possible? - by admantis - 06.05.2011, 17:59
Re: Is it possible? - by Antonio144 - 06.05.2011, 18:02
Re: Is it possible? - by Biesmen - 06.05.2011, 18:22
Re: Is it possible? - by admantis - 06.05.2011, 18:24
Re: Is it possible? - by Biesmen - 06.05.2011, 18:27
Re: Is it possible? - by admantis - 06.05.2011, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)