[ZCMD]Help With Some Dialog Respone
#1

pawn Code:
CMD:cmds(playerid)
{
    new PT[2900];
    strcat(PT, "{FF0000}Server Commands  \n", sizeof(PT));
    strcat(PT, "/ranks |/myrank |/rules|/topscores |/richlist  \n", sizeof(PT));
    strcat(PT, "/help | /pm | /r [text] | /ep | /anims | /laseron   \n", sizeof(PT));
    strcat(PT, "/lasercol | /radiohelp | /order [text] | /groupcmds   \n", sizeof(PT));
    strcat(PT, "/radiohelp | /order [text] | /spree |/credits |/acredits   \n", sizeof(PT));
    strcat(PT, "/moderators | /admins | /cmds | /st | /sc | /kill | /objective | /teams   \n", sizeof(PT));
    strcat(PT, "this Is Our tempory List Of Commands We Will Update More Soon!.  \n", sizeof(PT));
    strcat(PT, "Thanks For View Our Commands List Server will Update List Evry Time !  \n", sizeof(PT));

    ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "_________|- Call Of Duty - World At War Commands -|_________", PT, "Next", "Cancel");
    return 1;
}



Can Anyone Show my How I make THis Commands Thing When i preass next and it show another Page Of commands ?
Reply
#2

pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 5 && response != 0)
    {
//show the next list
response != 0 does the trick, it menas the player clicked 'next'
Reply
#3

And What I do more to Show the Next Page :\ can you just do this please :\

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 5 && response != 0)
{
Example !!!!
Reply
#4

Quote:
Originally Posted by donhu789
View Post
And What I do more to Show the Next Page :\ can you just do this please :\

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 5 && response != 0)
{
Example !!!!
Sure

pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 5 && response != 0)
    {

    new PT[2900];
    strcat(PT, "{FF0000}Server Commands 2  \n", sizeof(PT));
    strcat(PT, "Here you type your commands again \n", sizeof(PT));


    ShowPlayerDialog(playerid, 6, DIALOG_STYLE_MSGBOX, "_________|- Call Of Duty - World At War Commands Page 2-|_________", PT, "Next", "Cancel");
Reply
#5

knackworst

Can You help A one More thing ?

I just want single More help If I want to Add more What I do and Can i stop untill 5 page ?
Reply
#6

Just copy the strcat(PT, ... line and then type your text in it
Reply
#7

No Is not i mean I add More Pages For mine Commands
Reply
#8

pawn Code:
if(dialogid == 6 && response != 0)
    {

    new PT[2900];
    strcat(PT, "{FF0000}Server Commands 2  \n", sizeof(PT));
    strcat(PT, "Here you type your commands again \n", sizeof(PT));


    ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX, "_________|- Call Of Duty - World At War Commands Page 2-|_________", PT, "Next", "Cancel");
Keep doing this, but change the numbers: dialogid == ... and ShowPlayerDialog(playerid, ...) each time you add a new one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)