19.03.2011, 00:41
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
new string[128], name[MAX_PLAYER_NAME];
format(string,128,"[TEAM] %i: %s",name,text[1]);
SendMessageToTeam(playerid,string);
return 0;
}
return 1;
}
it is showing like :
[TEAM] 0:text
it is showing id, not name, how to fix that ?