[HELP]About Dialogs
#2

Well, that`s how it`s done, with if(response).

You can use either:
pawn Код:
if(response)
{
     if(listitem == 0) // If the player clicked on the first dialog line
     {
          //bla bla, your code here
     }
     else if(listitem == 1) // If the player clicked on the second dialog line
     {
          //bla bla
     }
}
That`s the case for dialogs with 'items' in it. If you, for example want a rules dialog, which has only "OK" and "CANCEL" button, try:
pawn Код:
if(response) // If he clicks First button
{
     SendClientMessage(playerid, -1, "Have fun on our server");
}
else // If he clicks Second Button
{
    SendClientMessage(playerid, -1, "You must accept our rules to play on this server");
    Kick(playerid);
}
Reply


Messages In This Thread
[HELP]About Dialogs - by Nightmare[TR] - 30.05.2011, 12:20
Re: [HELP]About Dialogs - by antonio112 - 30.05.2011, 12:36
Re: [HELP]About Dialogs - by Nightmare[TR] - 30.05.2011, 12:38

Forum Jump:


Users browsing this thread: 1 Guest(s)