[Scripting help] Running Game Mode
#1

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
Reply
#2

Accidently replied
Reply
#3

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

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
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)