20.05.2014, 08:18
You can't use specifiers in ShowPlayerDialog.
Use format's and strcat to put them together.
Here's an example:
edit:
To make it easier, use Zeus' example.
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", "");
To make it easier, use Zeus' example.