PDA

View Full Version : How to read server_log.txt


NightMrOver
22/07/2018, 10:42 AM
Hi,

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

Jing_Chan
22/07/2018, 10:50 AM
Open it in notepad++

NightMrOver
22/07/2018, 10:58 AM
But i want in pawno i need function, i want read and analyze information

Verc
22/07/2018, 11:27 AM
You can use GetPlayerIP..

NaS
22/07/2018, 12:46 PM
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: http://forum.sa-mp.com/showthread.php?t=92246

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