SA-MP Forums Archive
How to read server_log.txt - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to read server_log.txt (/showthread.php?tid=656721)



How to read server_log.txt - NightMrOver - 22.07.2018

Hi,

How to read server_log.txt ? for ex i want to retrieve some info in game like IP


Re: How to read server_log.txt - Jing_Chan - 22.07.2018

Open it in notepad++


Re: How to read server_log.txt - NightMrOver - 22.07.2018

But i want in pawno i need function, i want read and analyze information


Re: How to read server_log.txt - Verc - 22.07.2018

You can use GetPlayerIP..


Re: How to read server_log.txt - NaS - 22.07.2018

You need a File I/O Plugin that can access the root directory of the server (where the server_log.txt is).

I can recommend this one: https://sampforum.blast.hk/showthread.php?tid=92246

Then you basically just have to open the file and read it.