Raised This Month: $ Target: $400
 0% 

log


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
InteX01
Senior Member
Join Date: Jan 2017
Old 09-26-2018 , 06:51   log
Reply With Quote #1

Hi guys, cam someone explain me on how to make log file, and log text inside it..

i need very simple example like... type /logtest
and "Successfuly logged text" is wrote in that log file..
InteX01 is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 09-26-2018 , 07:06   Re: log
Reply With Quote #2

https://www.amxmodx.org/api/amxmodx/log_to_file
log_to_file( "myfile.log", "Text here" )
__________________
My English is A0

Last edited by E1_531G; 09-26-2018 at 07:07.
E1_531G is offline
InteX01
Senior Member
Join Date: Jan 2017
Old 10-01-2018 , 01:01   Re: log
Reply With Quote #3

So if i type like .log file that doesnt exist, its gonna be created?
InteX01 is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 10-01-2018 , 06:35   Re: log
Reply With Quote #4

Quote:
Originally Posted by InteX01 View Post
So if i type like .log file that doesnt exist, its gonna be created?
Yes.
__________________
My English is A0
E1_531G is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode