SA-MP Forums Archive
Problem with dialog on OnPlayerClickPlayer. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with dialog on OnPlayerClickPlayer. (/showthread.php?tid=110083)



Problem with dialog on OnPlayerClickPlayer. - Blefish - 24.11.2009

I have a problem. I want to create a dialog and it should pop up when a player clicks on scoreboard someones name. But it won't show the dialog...
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
  new string[128];
  if (GetPlayerAdminLevel(playerid) < 3)
  {
        new listitems3[] = "1\tTelepordi tema juurde\n2\tTelepordi tema sinu juurde\n3\tKicki\n4\tBanni\n";
        format(string, sizeof(string), "Mida sa soovid teha %s'ga?", PlayerName(clickedplayerid));
        ClickPlayerID[playerid] = clickedplayerid;
        ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, string, listitems3, "OK!", "Katkesta!");
  }
  return 1;
}