20.03.2010, 21:21
Hey, i have a little problem.
When i write a PM with my script, its do not show my name.
My name in the game is SOAD, and when i write a PM it shows only
PM from S: [.....]
there is my litle code :>
When i write a PM with my script, its do not show my name.
My name in the game is SOAD, and when i write a PM it shows only
PM from S: [.....]
there is my litle code :>
pawn Код:
new aname[MAX_PLAYER_NAME],string[256];
GetPlayerName(playerid, aname, sizeof(aname));
GetPlayerName(playerid, aname, sizeof(playerid));
format(string, sizeof(string), "PM from %s: %s", aname, inputtext);
SendClientMessage(playerid,0x0ffffff, string);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "You send to %s this message:\n %s", aname, inputtext);
ShowPlayerDialog(playerid, 444, DIALOG_STYLE_MSGBOX, "Message:",string, "Ok", "Close" );