When i click something on a dialog, nothing happens.
#9

Quote:
Originally Posted by sniperwars
Посмотреть сообщение
Your indentation is correct. Maybe that's what the warnings are.
Try this:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 0)
    {
        if(response)
        {
          SendClientMessage(playerid,0x008000FF, "You have clicked 'OK' In the dialog. Remember to /viphelp1 to see the commands again!");
        }
        else
        {
          SendClientMessage(playerid, 0xFF0000FF, "You selected 'Cancel'!");
        }
        return 1;
        }
   }
   return 0;
}
Rep me if it works.


Added an extra bracket...
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 0)
    {
        if(response)
        {
          SendClientMessage(playerid,0x008000FF, "You have clicked 'OK' In the dialog. Remember to /viphelp1 to see the commands again!");
        }
        else
        {
          return SendClientMessage(playerid, 0xFF0000FF, "You selected 'Cancel'!");
        }
   }
   return 0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)