10.11.2012, 08:37
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
Here is my OnDialogResponse
And Here is my Warning
The Warning is on the line of the dialog itself.
Thanks
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");
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);
}
}
}
}
Код:
warning 202: number of arguments does not match definition
Thanks