SA-MP Forums Archive
file functions and yini - 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: file functions and yini (/showthread.php?tid=635648)



file functions and yini - DavidBilla - 11.06.2017

My server's host only contains last 1000 lines of the chatlog.
So i decided to make a manual one using file functions or yini.
This log would contain all chats and commands.
Now i think when the server reaches 30+ playercount this could be a problem.
Since the file has to open,write and close everytime someone types something.
I think this could cause a lot of lag and i'm not sure whether to use fopen..etc or yini.
Is there a better alternative to these options?
Should i keep the file open once the server starts and close it only on ongamemodeexit?


Re: file functions and yini - DavidBilla - 12.06.2017

Bump