SA-MP Forums Archive
Players get stuck at: connected.Joining... - 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: Players get stuck at: connected.Joining... (/showthread.php?tid=523197)



Players get stuck at: connected.Joining... - mirou123 - 01.07.2014

Hi. So as the title says, the server works fine when I start it, players can connect and play, but after a while (around 24 hours) they start getting that issue. It would say that they are connecting to the server then it says connected. Joining the game and it will keep doing it to everyone that tries to login, till I restart the server.
I also get these debugs in the server logs:
Код:
[21:39:11] [join] Player_name has joined the server (4:41.225.205.132)
[21:39:11] [debug] Run time error 4: "Array index out of bounds"
[21:39:11] [debug] AMX backtrace:
[21:39:11] [debug] #0 0004eb68 in Bar:CreateProgressBar (Float:x=550.00000, Float:y=286.00000, Float:width=69.50000, Float:height=1.50000, color=8388607, Float:max=100.00000) at D:\SAMP scripts\FuseGaming Roleplay\pawno\include\progress.inc:71
[21:39:11] [debug] #1 0018bbb4 in LoadPlayerTextDraws (playerid=4) at D:\SAMP scripts\FuseGaming Roleplay\gamemodes\FGRP.pwn:18901
[21:39:11] [debug] #2 000cffa0 in public Lookup_OnPlayerConnect (playerid=4) at D:\SAMP scripts\FuseGaming Roleplay\gamemodes\FGRP.pwn:8967
[21:39:11] [debug] #3 native CallLocalFunction () [00472ef0] from samp-server.exe
[21:39:11] [debug] #4 0005bee4 in public MP_OPC (playerid=4) at D:\SAMP scripts\FuseGaming Roleplay\pawno\include\lookup.inc:45
[21:39:11] [debug] #5 native CallLocalFunction () [00472ef0] from samp-server.exe
[21:39:11] [debug] #6 00059600 in public SSCANF_OnPlayerConnect (playerid=4) at D:\SAMP scripts\FuseGaming Roleplay\pawno\include\mSelection.inc:435
[21:39:11] [debug] #7 000482ec in public Streamer_OnPlayerConnect (playerid=4) at D:\SAMP scripts\FuseGaming Roleplay\pawno\include\sscanf2.inc:205
[21:39:11] [debug] #8 00047bcc in public Itter_OnPlayerConnect (playerid=4) at D:\SAMP scripts\FuseGaming Roleplay\pawno\include\streamer.inc:305
[21:39:11] [debug] #9 000344d0 in public _y_utils_OnPlayerConnect (playerid=4) at D:\SAMP scripts\FuseGaming Roleplay\pawno\include\YSI\..\YSI_Visual\..\YSI_Data\y_iterate.inc:1130
[21:39:11] [debug] #10 0000a594 in OnPlayerConnect (playerid=4, ... <1073741822 arguments>) at D:\SAMP scripts\FuseGaming Roleplay\pawno\include\YSI\..\YSI_Visual\..\YSI_Core\..\YSI_Coding\..\YSI_Core\y_utils.inc:243
[21:39:11] [debug] #11 0000b61c in public OnPlayerConnect (... <1 argument>) at D:\SAMP scripts\FuseGaming Roleplay\pawno\include\YSI\..\YSI_Visual\..\YSI_Core\..\YSI_Coding\..\YSI_Internal\y_cgen.inc:30
This is line 18901:
Код:
PlayerTextDrawLetterSize(playerid, TMDC36, 0.500000, 1.000000);
Line 8967:
Код:
SetPlayerColor(playerid, COLOR_GREY);
I thought maybe I'm reaching the max amount for textdraws? How do I know if that's the problem and how do I fix it if it is?


Re : Players get stuck at: connected.Joining... - mirou123 - 03.07.2014

Does anyone have an idea please?


Re: Players get stuck at: connected.Joining... - Dignity - 03.07.2014

How do you handle your textdraws? Seeing you use PlayerTextDraws, do you destroy them after a player leaves?


Re : Players get stuck at: connected.Joining... - mirou123 - 03.07.2014

Well, PlayerTextDraws are destroyed automatically after a player logs out according to the wiki page, so no. And as for the global textdraws I don't destroy them either since I only create them once OnGameModeInit and show them when needed.


Re: Players get stuck at: connected.Joining... - Konstantinos - 03.07.2014

The run time error 4 is caused in CreateProgressBar function of progress.inc file as the crashdetect states. Although it's kind of weird that it does not display the index (which is accessing element at) and the last valid (in-bound) index. So compile with debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info
and make sure you use the latest version of crashdetect.

Are you sure you did not reach the limit of the MAX_BARS so it won't return -1 and that's out-of bounds index or that you did not define MAX_BARS after including progress.inc file?


Re : Players get stuck at: connected.Joining... - mirou123 - 03.07.2014

Oh I didn't define MAX_BARS. Thanks I will check that out. And I am using -d3 I will change MAX_BARS but I'm gonna need to wait until tomorrow or something to find out because it happens once every day or so. Is it ok if I set MAX_BARS to MAX_TEXTDRAWS?


Re: Re : Players get stuck at: connected.Joining... - greentarch - 03.07.2014

Quote:
Originally Posted by mirou123
Посмотреть сообщение
Oh I didn't define MAX_BARS. Thanks I will check that out. And I am using -d3 I will change MAX_BARS but I'm gonna need to wait until tomorrow or something to find out because it happens once every day or so. Is it ok if I set MAX_BARS to MAX_TEXTDRAWS?
Ok, but not advisable.
Set it to a reasonable amount, 300 - 500?


Re : Players get stuck at: connected.Joining... - mirou123 - 03.07.2014

It is set at MAX_TEXT_DRAWS / 3 so 500 wouldn't it be about the same?