11.07.2010, 03:11
Just format a string and insert it, example on input
EDIT: damn it..vb doesn't have warnings to see if anyone else posted before us -____-
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/test", cmdtext, true) == 0)
{
new str[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(str, sizeof(str), "Welcome to the server %s.", pName);
ShowPlayerDialog(playerid, 12345, DIALOG_STYLE_INPUT, "Welcome!", str, "Accept", "Cancel"); // Or switch str with title, doesnt really matter
return 1;
}
return 0;
}