24.09.2015, 00:30 
	
	
	
		You have to write it like this:
	
	
	
	
PHP код:
public OnPlayerText(playerid, text[])
{
    new msg[128];
    if(PlayerLogged[playerid] == 0)
    {
        format(msg,sizeof(msg),"You're not logged in to the server");
         SendClientMessageToAll(-1, msg);
    }
    else
    {
        new tmp[128];
        format(msg,sizeof(msg),"%s: {FFFFFF}%s", ReturnName(playerid),text);
        format(tmp,sizeof(tmp),"(%i) %s: {FFFFFF}%s",playerid, ReturnName(playerid),text);
        SendChatMessage(GetPlayerColor(playerid), msg, tmp);
     }
    return 0;
}
stock SendChatMessage(color,const txt[],const txt1[])
{
    for(new i=GetPlayerPoolSize()+1; --i!=-1;)
    {
        if(!IsPlayerConnected(i) || IsPlayerNPC(i)) continue;
        SendClientMessage(i,color,(Chat[i])?(txt1):(txt));
    }
    return 1;
} 


