[BUG]Chatlog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: [BUG]Chatlog (
/showthread.php?tid=357924)
[BUG]Chatlog -
Kiets - 08.07.2012
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.
Re: [BUG]Chatlog -
iTorran - 09.07.2012
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;
}
Re: [BUG]Chatlog -
Kiets - 09.07.2012
I told you, it's printed then twice, returning 0 in OnPlayerText still prints message.
Re: [BUG]Chatlog -
iTorran - 09.07.2012
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.
Re: [BUG]Chatlog -
Maruti - 09.07.2012
try to fix it urself
Re: [BUG]Chatlog -
reh_007 - 09.07.2012
@Maruti,
Were here to help, you Nub.