13.01.2015, 10:05
A string for the final format and another for the local format, perhaps that is the mistake, even-i have my doubts because the format you've done in the end, this should work.
pawn Код:
CMD:credits(playerid, params[])
{
new string[55], format[39], pName[24];
GetPlayerName(playerid, pName, 24);
format(format, sizeof(format), "***your name %s.", pName);
strcat(string, "Hey\n");
strcat(string, "\n");
strcat(string, "\n");
strcat(string, format);
ShowPlayerDialog(playerid, DIALOG_CREDITS, DIALOG_STYLE_MSGBOX, "{F81414}Credits", string, "Ok", "");
PlayerPlaySound(playerid, 1183, 0, 0, 0);
return true;
}