07.02.2011, 21:37
Hello guys
I'm trying to put the id of the players next to their name in the chat but all I'm getting is an empty line
in the chatlog. Any idea what I'm doing wrong here?
I'm trying to put the id of the players next to their name in the chat but all I'm getting is an empty line
in the chatlog. Any idea what I'm doing wrong here?
Код:
public OnPlayerText(playerid, text[]) { new Pname[MAX_PLAYER_NAME]; new string[162]; GetPlayerName(playerid,"Pname",sizeof(Pname)); format(string,sizeof(string),"[%d][%s]: %s",playerid, Pname, text); SendClientMessageToAll(GetPlayerColor(playerid),string); return 0; }