Help me :D simple Dialog player
#1

first, i add define on top script
pawn Код:
#define LOLE 4493
than
pawn Код:
ShowPlayerDialog(playerid, LOLE, DIALOG_STYLE_MSGBOX, "YOU KICKED", "Your name %s, \nYou Kick Because %s\n]n Name Admin : %s", "Okey", "",NORPN(playerid), params,  NORPN(playerb));
eror
Код:
gamemodes\luu.pwn(27808) : warning 202: number of arguments does not match definition
gamemodes\luu.pwn(27808) : warning 202: number of arguments does not match definition
gamemodes\luu.pwn(27808) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Reply
#2

You can't use specifiers in ShowPlayerDialog.
Use format's and strcat to put them together.

Here's an example:
pawn Код:
new str[128], strc[1024];
    format(str, sizeof(str), "Your name %s\n", NORPN(playerid));
    strcat(strc, str);
    format(str, sizeof(str), "You are kicked because %s\n", params);
    strcat(strc, str);
    format(str, sizeof(str), "Name of the Admin: %s\n", NORPN(playerb));
    strcat(strc, str);
    ShowPlayerDialog(playerid, LOLE, DIALOG_STYLE_MSGBOX, "YOU KICKED", strc, "Okay", "");
edit:
To make it easier, use Zeus' example.
Reply
#3

pawn Код:
new str[200];
format(str,sizeof(str), "Your name %s, \nYou Kick Because %s\n Name Admin : %s",NORPN(playerid), params,  NORPN(playerb));
ShowPlayerDialog(playerid, LOLE, DIALOG_STYLE_MSGBOX,"YOU KICKED",str,"Okey","");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)