Dialog (Info from mysql) - 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: Dialog (Info from mysql) (
/showthread.php?tid=386668)
Dialog (Info from mysql) -
Larry123 - 21.10.2012
Hello
I`m trying to make phonebook system. If i write cmd, then i would like to see dialog with my stats come from
mysql.
So how i display that?
Dialog should be like this:
Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Contacts", "%s(Contact 1)\n%s(Contact 2\n%s(Contact 3)\n%s(Contact 4)\n%s(Contact 5)", "OK", "");
And if one contact is missing, for example Contact 2, then dialog should be like this:
Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Contacts", "%s(Contact 1)\n%s(Contact 3)\n%s(Contact 4)\n%s(Contact 5)", "OK", "");
(It will not show Contact 2 then)
I hope you understand what i want to do.
Thanks,
Larry