Dialog help please?
#1

Hi, i have created this dialog i am currently learning Dialog and this warning gave me but i don't have a clue in how to fix it here is my dialog and my OnDialogResponse

pawn Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Welcome to Profound Gaming's Paradise Island!\n To insure you have a nice time you need to accept some rules first\nHacking or Cheating = BAN\nAbusing bugs / glitches = BAN\nDo not ask admins for vehicles.\nNever ask for admin or promotion.\nYou are allowed to have 1 car of 1 model\nSpawnkilling or any other unfair killing is not allowed.\nShow respect to all admins and players\n For more rules type /rules","Agree","DisAgree");
Here is my OnDialogResponse
pawn Код:
if(dialogid == 1)
    {
        new stringg[599];
        if(response == 1)
        {
                switch(listitem)
                {
                    case 0:
                    {

                    }
                    case 1:
                    {
                    Kick(playerid);
                    SendClientMessage(playerid,green,"You DisAgreed to the rules so you therfore got kicked. Goodbye!");
                    new nome[24];
                    GetPlayerName(playerid, nome, 24);
                    format(stringg, sizeof(stringg), "** {FFFFFF}%s{00BFFF} has been kicked from the Server. [Reason: {FFFFFF}Disagreed to the rules{00BFFF}]", nome);
                    }


                }

        }
    }
And Here is my Warning
Код:
 warning 202: number of arguments does not match definition
The Warning is on the line of the dialog itself.

Thanks
Reply
#2

pawn Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST, "Welcome!", "Welcome to Profound Gaming's Paradise Island!\n To insure you have a nice time you need to accept some rules first\nHacking or Cheating = BAN\nAbusing bugs / glitches = BAN\nDo not ask admins for vehicles.\nNever ask for admin or promotion.\nYou are allowed to have 1 car of 1 model\nSpawnkilling or any other unfair killing is not allowed.\nShow respect to all admins and players\n For more rules type /rules","Agree","DisAgree");
Recommend you to use strcat, This code will give error because the line is too long..
Reply
#3

You're missing a caption.
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[])
Reply
#4

Oh right i totaly forgot about that thanks. +rep to MMartin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)