Help me with this @Developers
#1

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

Hello!

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

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

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

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"
Reply
#6

Can you show us your OnPlayerDisconnect callback, please?
Reply
#7

Guys. Here is complete Cam.pwn

Pastebin
Reply
#8

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;

Reply
#9

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

Show the OP Code when come the report crash
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)