[ANSWERED] Dialog doesn't response
#5

Okay, I did...
This is now my script (somethings changed):
pawn Код:
#include <a_samp>
#include <dudb>

#pragma unused ret_memcpy

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
  return 1;
}

public OnFilterScriptExit()
{
  return 1;
}

#endif

public OnGameModeInit()
{
  return 1;
}

public OnGameModeExit()
{
  return 1;
}

public OnPlayerSpawn(playerid)
{
  ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Choose your thing!","First \t $1", "Select", "Quit");
  return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
  new cmd[256], idx;
  cmd = strtok(cmdtext, idx);
  if(strcmp("/thing", cmd, true) == 0)
  {
   ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Choose your thing!", "First \t $1", "Join", "Quit");
   return 1;
  }
  return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if(dialogid == 0)
  {
   if(response)
   {
     SendClientMessage(playerid, groen, "Yes"); // I don't get this message.. :S
     switch(listitem)
     {
      case 0:
      {
        SendClientMessage(playerid, lichtgroen, "Now you made it! Congratulations!");
      }
      case 1:
      {
        SetPlayerPos(playerid, 12, 12, 12);
        SetPlayerFacingAngle(playerid, 12);
        SendClientMessage(playerid, groen, "Lol, where are you?");
      }
     }
   }
   else if(!response) /* also won't work without 'if(!response)' */
   {
     SendClientMessage(playerid, rood, "You quited the server");
     Kick(playerid);
   }
  }
  return 1;
}
It is not working, does anybody else know why?
Reply


Messages In This Thread
[ANSWERED] Dialog doesn't response - by CAR - 20.04.2010, 19:33
Re: Dialog doesn't response - by Torran - 20.04.2010, 19:37
Re: Dialog doesn't response - by CAR - 20.04.2010, 19:39
Re: Dialog doesn't response - by Torran - 20.04.2010, 19:41
Re: Dialog doesn't response - by CAR - 21.04.2010, 14:56
Re: Dialog doesn't response - by Torran - 21.04.2010, 15:09
Re: Dialog doesn't response - by CAR - 21.04.2010, 15:13
Re: Dialog doesn't response - by Assyria - 21.04.2010, 15:14
Re: Dialog doesn't response - by CAR - 21.04.2010, 15:23
Re: Dialog doesn't response - by CAR - 21.04.2010, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)