Get Listitem Name - 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)
+--- Thread: Get Listitem Name (
/showthread.php?tid=374103)
Get Listitem Name -
Muhamed.pwn - 01.09.2012
Does anybody know how to get a Listitem name from a dialog and print it ?
ex.
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST,"Exapmle","Name 1\nName 2\nName 3","Print","Close");
print("Name 1");
Thanks.
Re: Get Listitem Name -
Admigo - 01.09.2012
You can make ondialogresponce.
Код:
switch(dialogid)
{
case 0:
{
//print name 1
}
case 1:
{
//print name 2
}
case 2:
{
//print name 3
}
}
If i helped u rep me
Re: Get Listitem Name -
Muhamed.pwn - 01.09.2012
Thank you for reply but im reading data from a file and putting it into the dialog but now i need to get those names in the dialog to find other files. Just like in Zamaroth's TDE but his code isn't working in my GM
Re: Get Listitem Name -
fadhilkab - 01.09.2012
You mean?
Re: Get Listitem Name -
Admigo - 01.09.2012
Quote:
Originally Posted by fadhilkab
You mean?
|
I dont get it to:P
I was thinking he was needed to send a print if someone clicked on an item in the menu.
Re: Get Listitem Name -
Muhamed.pwn - 01.09.2012
its like this ,
zamaroths textdraw editor is using a file where he stored project names and to load them he used a function to read text from listitem which the player has selected.
Re: Get Listitem Name -
SuperViper - 01.09.2012
inputtext is the listitem text.
Re: Get Listitem Name -
Muhamed.pwn - 01.09.2012
its exactly this
https://sampforum.blast.hk/showthread.php?tid=241745
Re: Get Listitem Name -
Muhamed.pwn - 01.09.2012
need help ppl