Wolvin-NET / prophuntx

Prop Hunt X2Z: 2024 version of Modernized, Enhanced and Customisable Version of Classic Prop Hunt for Garry's Mod.
https://gmodgameservers.com/prophuntx
23 stars 15 forks source link

Dev branch Lua error while opening F1 Menu --> Prop hunt menu #15

Closed haeiven closed 2 years ago

haeiven commented 2 years ago

[Haeiven|2|STEAM_0:1:43774198] Lua Error:

[ERROR] lua/includes/extensions/table.lua:60: bad argument #1 to 'next' (table expected, got nil)

  1. next - [C]:-1
    1. IsEmpty - lua/includes/extensions/table.lua:60
    2. unknown - gamemodes/prop_hunt/gamemode/cl_menutypes.lua:332
      1. CreateVGUIType - gamemodes/prop_hunt/gamemode/cl_menu.lua:118
      2. ShowAdminMenu - gamemodes/prop_hunt/gamemode/cl_menu.lua:519
      3. func - gamemodes/prop_hunt/gamemode/cl_menu.lua:775
      4. unknown - lua/includes/extensions/net.lua:33
Vinzuerio commented 2 years ago

Apparently you were using old commit, try using the new commit of https://github.com/Wolvin-NET/prophuntx/commit/a65b671940e815933e5575fe590044b773089d9b

I believe that error comes up with previous old commit, which is why on the line 332 in cl_menutypes.lua was invalid

Vinzuerio commented 2 years ago

Use the branch update once the gamemode is released. Make sure you made a backup copy from your PH:X if you did some edits. The new update will be pushed by the latest of June 19th-20th.