27.07.2013, 03:14
Quote:
pawn Код:
|
And new str[500]; ?
No. just No.
Try this:
pawn Код:
CMD:welcome(playerid, params[])
{
new string[128], msg[128], pname[MAX_PLAYER_NAME];
if(sscanf(params,"s[128]",msg)) return SendClientMessage(playerid, 0xCD3333, "/welcome <text>");
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "*%s %s", pname, msg);
SendClientMessageToAll(0xCD3333, string);
return 1;
}