SA-MP Forums Archive
[Scripting help] Running Game Mode - 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: [Scripting help] Running Game Mode (/showthread.php?tid=603366)



[Scripting help] Running Game Mode - mirzakovacic - 22.03.2016

After running my game mode, everything seems fine and loaded untill I join my local server, after that, my server crashes and samp-server.exe file closes. I'm not even sure why it's showing this directory "C:\Users\Josip\Desktop\panel\Server\gamemodes \" since it's from another PC and not mine.





[23:53:11] [connection] 127.0.0.1:59712 requests connection cookie. [23:53:12] [connection] incoming connection: 127.0.0.1:59712 id: 0 [23:53:12] [join] Mirza_Kovacic has joined the server (0:127.0.0.1) [23:53:13] [debug] Server crashed while executing ATHRP.amx [23:53:13] [debug] AMX backtrace: [23:53:13] [debug] #0 native fwrite () from samp-server.exe [23:53:13] [debug] #1 00512abc in LogSave (gde[]=@02bbaac4 "Ostalo/LogConnect.log", string[]=@02e264d8 "Igrac: Mirza_Kovacic | IP: 127.0.0.1 ") at C:\Users\Josip\Desktop\panel\Server\gamemodes\ATHR P.pwn:13537 [23:53:13] [debug] #2 0065095c in public MP_OPC (playerid=0) at C:\Users\Josip\Desktop\panel\Server\gamemodes\ATHR P.pwn:29788 [23:53:13] [debug] #3 native CallLocalFunction () from samp-server.exe [23:53:13] [debug] #4 00031d48 in ?? (... <1 argument>) at C:\Users\Josip\Desktop\panel\Compiler\include\mSel ection.inc:432 [23:53:13] [debug] #5 0000dc68 in public SSCANF_OnPlayerConnect (playerid=0) at C:\Users\Josip\Desktop\panel\Compiler\include\YSI\ y_hooks/impl.inc:618 [23:53:13] [debug] #6 0000095c in public OnPlayerConnect (playerid=0) at C:\Users\Josip\Desktop\panel\Compiler\include\ssca nf2.inc:205 [23:53:13] [debug] Native backtrace: [23:53:13] [debug] #0 77a5aeb3 in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll [23:53:13] [debug] #1 00498bb8 in ?? () from samp-server.exe [23:53:13] [debug] #2 0040531e in ?? () from samp-server.exe


Re: [Scripting help] Running Game Mode - mirzakovacic - 22.03.2016

Accidently replied


Re: [Scripting help] Running Game Mode - Virtual1ty - 22.03.2016

Learn how to use fwrite() correctly. Alternatively, it could be that you don't have write access to the directory.


Re: [Scripting help] Running Game Mode - mirzakovacic - 22.03.2016

And what do you mean by that? My friends can run the same game mode on their PC. I don't know whats the problem here


Re: [Scripting help] Running Game Mode - mirzakovacic - 22.03.2016

Solved, I had to run samp-server.exe as administrator, thank you rep+