Regarding Chat logs.
#1

Hello there, need a little help regarding creating logs of chat. i am kinda new and have no idea so would love to get help. want it so that when ever someone types something it goes to logs and every command too and it should be shown on console.
Reply
#2

Well, for the first thing you have to enable "chatlogging" from server.cfg. For the other one you can simply put a printf under "public OnPlayerCommandPerformed(playerid, cmdtext[], success)" if you're using zcmd
Reply
#3

yea its showing in console but it doesnt save the chat/commands logs in scriptfiles folder.
Reply
#4

if you printf it's printed on server_log, if you want to save on a custom file you must write (fwrite or include function) to this file
Reply
#5

Quote:
Originally Posted by Shinja
Посмотреть сообщение
if you printf it's printed on server_log, if you want to save on a custom file you must write (fwrite or include function) to this file
It helped thanks +Rep for both of you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)