18.06.2009, 14:40
Also a correct code without useless arrays, espeicaly while you use 256 cells.
pawn Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
new string[128],p1[MAX_PLAYER_NAME],p2[MAX_PLAYER_NAME];
GetPlayerName(playerid,p1,sizeof(p1));
GetPlayerName(recieverid,p2,sizeof(p2));
format(string,sizeof(string),"You Sent PM to [ID:%d | %s]: %s",recieverid,p2,text);
SendClientMessage(playerid,LIGHTBLUE,string);
format(string,sizeof(string),"You Recived PM from [ID:%d | %s]: %s",playerid,p1,text);
SendClientMessage(recieverid,LIGHTBLUE,string);
return 0;
}

