SA-MP Forums Archive
dialog question - 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: dialog question (/showthread.php?tid=136817)



dialog question - Headshot1108 - 26.03.2010

i have a /admins command which shows all admins in a listbox.
but i have a question.
how can i make that if i click on a admin that the statistics show?
Or rather what must i do in OnDialogResponse?


Re: dialog question - Headshot1108 - 26.03.2010

please help, i dont know how work this.


Re: dialog question - GTAguillaume - 26.03.2010

https://sampwiki.blast.hk/wiki/OnDialogResponse
Example:
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if(dialogid == 1) //change 1 to your dialog ID
  {
    if(!response) SendClientMessage(playerid, 0xFFFFFFFF, "You canceled!");
    ....
    return 1;
  }
  return 0;
}



Re: dialog question - Headshot1108 - 26.03.2010

lol
the problem is i must get the ids of the admins, and i dont know how, because i made a listbox for all admins who are in the server..