SA-MP Forums Archive
How to make it become Dialog Menu? - 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: How to make it become Dialog Menu? (/showthread.php?tid=555315)



How to make it become Dialog Menu? - DGRP - 07.01.2015

How do I make this /help command become a dialog menu? Here's an SS


If you know how to make it become a dialog, please comment on this post, thanks.


Re: How to make it become Dialog Menu? - Rufio - 07.01.2015

Hello there,
You should use ShowPlayerDialog function such as this;

pawn Код:
ShowPlayerDialog(playerid,dialogid, DIALOG_STYLE_MSGBOX,"Help Menu","*** HELP *** /report /requesthelp /atalk /newb(/tognewb) \n ***ACCOUNT *** /stats","OK","Cancel");
Fill it with correct information and don't forget to use \n in order to add a new line. Good luck.


Re: How to make it become Dialog Menu? - DGRP - 07.01.2015

How do I define dialogid? Here's my /help code
Quote:

CMD:help(playerid, params[])
{
if(PlayerInfo[playerid][pLevel] <= 3)
{
SendClientMessageEx(playerid, TEAM_AZTECAS_COLOR,"*** HELP *** /report /requesthelp /atalk /newb(/tognewb)");
}
SendClientMessageEx(playerid, COLOR_WHITE,"*** ACCOUNT *** /stats /inventory /myguns /levelup /upgrade /changepass /killcheckpoint /resetupgrades(100k)");
SendClientMessageEx(playerid, COLOR_WHITE,"*** CHAT *** /w(hisper) /o(oc) /s(hout) /ame /me /do /ado /try /l(ow) /b /ad(vertise) /f(amily) /me /togooc /tognews /togfam /togwhisper");
SendClientMessageEx(playerid, COLOR_WHITE,"*** BANK *** /balance /withdraw /deposit /wiretransfer /abalance /awithdraw /awiretransfer");
SendClientMessageEx(playerid, COLOR_WHITE,"*** GENERAL *** /pay /writecheck /cashchecks /charity /time /buy /id /music /showlicenses /clothes /mywarrants /pm /togpm");
SendClientMessageEx(playerid, COLOR_WHITE,"*** GENERAL *** /lock /skill /stopani /do /me /kill /buyclothes /droplicense /calculate /refuel /car /seatbelt /checkbelt");
SendClientMessageEx(playerid, COLOR_WHITE,"*** GENERAL *** /cancel /accept /eject /usepot /usecrack /contract /service /families /joinevent /checkweed /mask");
SendClientMessageEx(playerid, COLOR_WHITE,"*** GENERAL *** /search /gascan");