How to make it become Dialog Menu?
#1

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.
Reply
#2

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.
Reply
#3

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");

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)