Mistake in log system
Hey, I made a log system for people attacking server. I will use "amx_cvar log_kontrol 1"
and everyone's commands will be logged. But not logged.
Spoiler
|
Re: Mistake in log system
Quote:
|
Re: Mistake in log system
I am explaining how this plugin works. I will use amx_log purposeless or amx_cvar log_kontrol "1"
and the commands of purposeless or each person will be seen in the "addons/amxmodx/purpo_attack_log/%s.log" but there is a mistake and not seen |
Re: Mistake in log system
I see 2 things wrong here, perhaps that's why:
PHP Code:
2. You're trying to format both the file name and the message in log_to_file (?), although it's possible only for the message. Try replacing it with this: PHP Code:
|
Re: Mistake in log system
Quote:
Quote:
|
Re: Mistake in log system
Can you correct my plugin? I am not pretty sure where is mistake. I did what Kushfield say but not working.
Not logging in file. |
Re: Mistake in log system
Quote:
Since you are very inexperienced, you need to start by testing smaller parts of your code by itself. First test being able to write to a file using log_to_file() to make sure that you can write to the file. Then, once you've verified that you can successfully do that, add some more complicated parts. |
Re: Mistake in log system
Quote:
EDIT: This reminds me: PurposeLessx, have you created the directory "addons/amxmodx/purpo_attack_log/" ? Other than that, I'm afraid I'm all out of ideas, at least until you answer the questions fysiks asked you. |
Re: Mistake in log system
He needs to learn to debug code instead of asking "code not work" every time.
I don't think this works like that, i might be wrong Code:
|
Re: Mistake in log system
I changed it but still no log anywhere.
PHP Code:
|
| All times are GMT -4. The time now is 12:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.