Problem with dialog on OnPlayerClickPlayer.
#1

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)