SA-mp Chat shown in server log but not ingame
#1

Dont know if its actually a Client Problem..so if not ill ask an Mod to move it

ok following problem...

If i type something in chat normal with out any command it wont shown up ingame....But if i look on the server_log.txt the message was sent just not shown ingame...

This is my OnPlayerText...

pawn Код:
public OnPlayerText(playerid, text[])
{
    new pname[24];
    new string[128];
    GetPlayerName(playerid,pname,sizeof(pname));
   
    //SPAM
    SpamStrings[playerid] +=2;
   
    //If Muted
    if(IsMuted[playerid] == 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You are muted. You cannot speak.");
        return 0;
    }
    //If Spamming
    if(SpamStrings[playerid] >= MAX_SPAM)
    {
        SendClientMessage(playerid, COLOR_ERROR, "Please do not spam. Please wait before typing again.");
        return 0;
    }
    if(strfind(text[0],"rcon",true)) return 0;
    if(strfind(text[0],"www.",true)) return 0;
    if(strfind(text[0],"http",true)) return 0;
    if(strfind(text[0],"login",true)) return 0;
    if(strfind(text[0],"noob",true))
    {
        SendClientMessage(playerid,COLOR_ERROR,"Please use newbie instead");
        return 0;
    }
    format(string,sizeof(string),"%s(%d): %s",PlayerName(playerid),playerid,text);
    SaveIn("chat",string);
    return 1;
}
As you see at the end it returns 1...

Some other Info


SA-MP 0.3c R2 Server Package
SA-MP 0.3c R3 Client Package
Operating System: Windows Vista ( Tried it already on Linux debian but same problem)
Reply


Messages In This Thread
SA-mp Chat shown in server log but not ingame - by xerox8521 - 14.07.2011, 15:11
Re: SA-mp Chat shown in server log but not ingame - by dugi - 14.07.2011, 15:15
AW: SA-mp Chat shown in server log but not ingame - by xerox8521 - 14.07.2011, 15:28
Re: SA-mp Chat shown in server log but not ingame - by dugi - 14.07.2011, 15:31
AW: SA-mp Chat shown in server log but not ingame - by xerox8521 - 14.07.2011, 15:37
Re: SA-mp Chat shown in server log but not ingame - by Adil - 14.07.2011, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)