04.11.2012, 10:37 
	
	
	
		In my server chat not working,
Why?
	
	
	
	
PHP код:
OnPlayerText
{
rerurn 1;
} 
OnPlayerText
{
rerurn 1;
} 
public OnPlayerText(playerid, text[])
{
return 1;
}
 
	public OnPlayerText ( playerid, text [ ] )
{
return false;
}
| pawn Код: 
 | 
 
	| [..] Returning 0 in this callback will stop the text from being sent [..] | 
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0; // ignore the default text and send the custom one
}