i would like to create a cmd:help
#1

i would like to create a cmd:help.when we type that they should a show a dialog box and "cancel" and "next" only three pages after that show "ok".when we click next it should go to next page.
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=413556
Reply
#3

Just use this: https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Reply
#4

here you go

pawn Код:
CMD:help(playerid)
{
    ShowPlayerDialog(playerid, 900, DIALOG_STYLE_MSGBOX,"Title Here","Message here","OK","Next");
        //use else to open another dialog
    return 1;
}
Reply
#5

Quote:
Originally Posted by pds2012
Посмотреть сообщение
here you go

pawn Код:
CMD:help(playerid)
{
    new help;
    if(help == 1)
    {
    ShowPlayerDialog(playerid, 900, DIALOG_STYLE_MSGBOX,"Title Here","Message here","OK","Next");
    }else{
    ShowPlayerDialog(playerid, 900, DIALOG_STYLE_MSGBOX,"Title Here","Message here","OK","Next");
    }
    return 1;
}
Don't post wrong stuff. How does that even make sense?!
You're declaring a new variable called 'help' under the command 'help' to detect if 'help' is 1 or not, and the result is same!

Your code is retarded.
pawn Код:
CMD:help(playerid, params[ ])
{
    ShowPlayerDialog(playerid, 900, DIALOG_STYLE_MSGBOX,"Title Here","Message here","OK","Next");
    return 1;
}
Would do the same thing, and would be more understandable
Reply
#6

i need the dialog response
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)