[BUG]Chatlog
#1

Don't know this is bug or not, but i wanted to post that.

If you return 0 in OnPlayerText callback, the text is still printed in the log. Well, i think it shouldn't be, because in my mode i check if player typed ! as first character, if yes, then the message is sent to the team only. And in chat log i would like to see this: [TEAM]_Player: dfmapefna. But instead of making my own message i have things like this: !Player: afneaion.
I think it shouldn't print the text as we could customise it at least.
Reply
#2

Print your string.
Example:

pawn Код:
if(text[0] == '@')
{
    new msg[170];
    format(msg, sizeof msg, "EPICCHAT %s: %s", GetName(playerid), text[1]);
    SendClientMessageToAll(0xFFFFFFFF, msg); print(msg);
    return 0;
}
Reply
#3

I told you, it's printed then twice, returning 0 in OnPlayerText still prints message.
Reply
#4

Quote:
Originally Posted by Kiets
Посмотреть сообщение
I told you, it's printed then twice, returning 0 in OnPlayerText still prints message.
I don't think its a "bug"
It's useful in most situations that it's still printed.

However, if you don't like it doubling up, log the chat to a custom file.
Reply
#5

try to fix it urself
Reply
#6

@Maruti,

Were here to help, you Nub.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)