Posts: 824
Threads: 6
Joined: Sep 2012
Reputation:
0
What's ForEach(i, MAX_PLAYERS)?
Posts: 1,266
Threads: 6
Joined: Oct 2014
probably its crashing so use crashdetect plugin with third debug value on your script and tell us what being printed in server.log after the shut down / crash.
Crashdetect:
https://sampforum.blast.hk/showthread.php?tid=262796
third debug:
https://github.com/Zeex/samp-plugin-...ith-debug-info
Posts: 1,266
Threads: 6
Joined: Oct 2014
PHP код:
LogInLog(NewLog);
->
PHP код:
[11:30:20] [debug] #0 native fwrite () from samp-server.exe
You're trying to write inside a file which doesn't exist!
https://sampwiki.blast.hk/wiki/Fwrite
Quote:
Using an invalid handle will crash your server! Get a valid handle by using fopen or ftemp.
|
so go on LogInLog function and see which file it writes on it and create it manually!
Posts: 814
Threads: 190
Joined: Feb 2016
Reputation:
0
so should i type the folder name InLog or the file which inside the folder wish is logs.log
Posts: 1,266
Threads: 6
Joined: Oct 2014
Quote:
Originally Posted by Loinal
so should i type the folder name InLog or the file which inside the folder wish is logs.log
|
the file which this function writes in it seems to be not created yet so all you have to do it creating it. [ ex create .txt file then change its name extension ]
Posts: 1,266
Threads: 6
Joined: Oct 2014
go to script files folder see if there's a folder called InLogs if no then create it and also be sure login.log file exist inside it.