SA-MP Forums Archive
Help me with this @Developers - 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: Help me with this @Developers (/showthread.php?tid=630955)



Help me with this @Developers - maaz - 20.03.2017

I got new gamemode from my friend. Its last version worked, but the new one isn't working. It connects to the game and shows "Connected. Joining the game..." and then suddenly crashes.

Here is my chatlog. Server log doesn't show anything.

Код:
[20:03:38] {FFFFFF}SA-MP {B9C9BF}0.3.7 {FFFFFF}Started

[20:03:41] Connecting to 127.0.0.1:7777...

[20:03:42] Connected. Joining the game...

[20:03:45] Warning(s003d): Exception 0xC0000005 at 0x331F5D0
Ill give +rep for everyone who helps me.

PS: when i disabled all my FS. I got to connect to server.


Re: Help me with this @Developers - Mencent - 20.03.2017

Hello!

Crashs your game or the server?
When the server crashs then use crashdetect plugin and show us the server.log.


Re: Help me with this @Developers - J0sh... - 20.03.2017

Well it is obviously a client crash. (As seen with Connecting to )


Re: Help me with this @Developers - maaz - 20.03.2017

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello!

Crashs your game or the server?
When the server crashs then use crashdetect plugin and show us the server.log.
actually game crashes.

Код:
[20:12:17] [connection] 127.0.0.1:49194 requests connection cookie.
[20:12:18] [connection] incoming connection: 127.0.0.1:49194 id: 0
[20:12:18] [join] potato has joined the server (0:127.0.0.1)
[20:12:45] [debug] Run time error 4: "Array index out of bounds"
[20:12:45] [debug]  Attempted to read/write array element at index 3 in array of size 3
[20:12:45] [debug] AMX backtrace:
[20:12:45] [debug] #0 00000598 in public OnPlayerDisconnect (0, 0) from Cam.amx
[20:12:45] [part] potato has left the server (0:0)
btw how can I fix it?


Re: Help me with this @Developers - Jessyy - 20.03.2017

As per specified above, you must use "crashdetect" to see what is the cause of the crash.
You can find the plugin here: https://github.com/Zeex/samp-plugin-...etect/releases

Edit: forgot to refresh the page... anyway you will need to show the code from "OnPlayerDisconnect"


Re: Help me with this @Developers - Mencent - 20.03.2017

Can you show us your OnPlayerDisconnect callback, please?


Re: Help me with this @Developers - maaz - 20.03.2017

Guys. Here is complete Cam.pwn

Pastebin


Re: Help me with this @Developers - Mencent - 20.03.2017

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    if(
IsInCameraMode[playerid] == 1)
    {
        
KillTimer(KeyTimer[playerid]);
        
IsInCameraMode[playerid] = 0;
    }
    for(new 
i=0i<2i++)
    {
        
SavedPCP[playerid][i][0] = 0.0;
        
SavedPCP[playerid][i][1] = 0.0;
        
SavedPCP[playerid][i][2] = 0.0;
        
SavedPCL[playerid][i][0] = 0.0;
        
SavedPCL[playerid][i][1] = 0.0;
        
SavedPCL[playerid][i][2] = 0.0;
        
SavedPCA[playerid][i] = 0.0;
    }
    return 
1;




Re: Help me with this @Developers - maaz - 20.03.2017

Cam.pwn is fixed. But i still cannot connect.
GTA_SA crashes and shows this message
http://prntscr.com/embth0


Re: Help me with this @Developers - Dayrion - 20.03.2017

Show the OP Code when come the report crash