SA-MP Forums Archive
A couple of errors - 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: A couple of errors (/showthread.php?tid=640891)



A couple of errors - GodLight - 08.09.2017

Hello guys.
I Got some error when I try to log in on server.
It happens on gamehost LINUX.
On my PC it works well.

Код:
[21:02:58] [connection] ----- requests connection cookie.
[21:02:59] [connection] incoming connection: ----- id: 0
[21:02:59] [join] GodLight has joined the server (0:----)
[21:03:04] [debug] Run time error 4: "Array index out of bounds"
[21:03:04] [debug]  Accessing element at index 65535 past array upper bound 1999
[21:03:04] [debug] AMX backtrace:
[21:03:04] [debug] #0 002b9008 in ?? (7) from GN.amx
[21:03:04] [debug] #1 0015a6e4 in public OnPlayerLogin (0, 165116060) from GM.amx
[21:03:04] [debug] #2 002a7bb0 in public OnDialogResponse (0, 2, 1, -1, 164859432) from GM.amx
[21:03:09] [debug] Run time error 4: "Array index out of bounds"
[21:03:09] [debug]  Accessing element at index 65535 past array upper bound 1999
[21:03:09] [debug] AMX backtrace:
[21:03:09] [debug] #0 002b8bcc in ?? (7) from sapphire.amx
[21:03:09] [debug] #1 00047fb8 in public SSCANF_OnPlayerDisconnect (0, 1) from GM.amx
[21:03:09] [debug] #2 00002e84 in public Itter_OnPlayerDisconnect (0, 1) from GM.amx
[21:03:09] [debug] #3 0000247c in public OnPlayerDisconnect (0, 1) from GM.amx
[21:03:09] [part] GodLight has left the server (0:1)



Re: A couple of errors - Vince - 08.09.2017

Script issue, nothing to do with host. Somewhere you're not checking if a vehicle is valid before using its id in as an array index.


Re: A couple of errors - GodLight - 08.09.2017

I got problem with the Login. What vehicle can affect this?
I see the dialog for password, and after nothing happens.

When I insert password and hit Login button, give me this.
Код:
[21:39:31] [join] GodLight has joined the server (0:------)
[21:39:42] [debug] Run time error 4: "Array index out of bounds"
[21:39:42] [debug]  Accessing element at index 65535 past array upper bound 1999
[21:39:42] [debug] AMX backtrace:
[21:39:42] [debug] #0 002b9008 in ?? (7) from GM.amx
[21:39:42] [debug] #1 0015a6e4 in public OnPlayerLogin (0, 165115720) from GM.amx
[21:39:42] [debug] #2 002a7bb0 in public OnDialogResponse (0, 2, 1, -1, 164859092) from GM.amx
When I exit the server because I'm not spawning anywher and my Game stuck in ai, it give this this rest of error.

Код:
[21:40:12] [debug] Run time error 4: "Array index out of bounds"
[21:40:12] [debug]  Accessing element at index 65535 past array upper bound 1999
[21:40:12] [debug] AMX backtrace:
[21:40:12] [debug] #0 002b8bcc in ?? (7) from GM.amx
[21:40:12] [debug] #1 00047fb8 in public SSCANF_OnPlayerDisconnect (0, 2) from GM.amx
[21:40:12] [debug] #2 00002e84 in public Itter_OnPlayerDisconnect (0, 2) from GM.amx
[21:40:12] [debug] #3 0000247c in public OnPlayerDisconnect (0, 2) from GM.amx
[21:40:12] [debug] #4 native Kick () from samp03svr
[21:40:12] [debug] #5 000821a8 in public Logink (0) from GM.amx
[21:40:12] [part] GodLight has left the server (0:2)



Re: A couple of errors - Kane - 08.09.2017

Showing us some code would help. Specifically OnPlayerLogin and OnPlayerDisconnect.