ColombianGuy / r5_flowstate

Flowstate scripts. Bugs fixes, new features and more content.

Home Page:https://X.com/CafeFps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetOwnerName() may cause server crash

dxalyjz opened this issue · comments

error log:

[10453.629] Script(S):SCRIPT ERROR: [SERVER] Index "0" is beyond array size of 0
[10453.629] Script(S): -> return file.mAdmins[0]
[10453.630] Script(S):
CALLSTACK
*FUNCTION [GetOwnerName()] gamemodes/custom_tdm/_gamemode_flowstate.nut line [2388]
*FUNCTION [ClientCommand_Scoreboard()] gamemodes/custom_tdm/_gamemode_flowstate.nut line [2837]
[10453.630] Script(S):LOCALS
[this] TABLE
[ping] 242.82678222656
[args] ARRAY
[player] ENTITY (player 8grshjj67543lj [3] (player "8grshjj67543lj" at <11391.1 4475.57 -4303.97>))
[this] TABLE
DIAGPRINTS

if file.mAdmins is null that will cause crash,please fix it

This looks to be a tdm issue, not an aim trainer issue.

sorry about that , but i can't find the author on github

sorry about that , but i can't find the author on github
Fix:
Download updated playlist for hosters: https://github.com/ColombianGuy/r5_aimtrainer/releases/tag/Release
Set Admins field correctly in custom_tdm