[Coding Question] Zombie Survival Weapons



  • I added new weapons to zombie survival to the pointshop.

    Why does it give me this when I open the arsenal?

    
    [ERROR] gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua:225: attempt to index field 'Entity' (a nil value)
      1\. OpenPointsShop - gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua:225
       2\. unknown - LuaCmd:1
    
    [ERROR] gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua:91: attempt to index field 'm_NameLabel' (a nil value)
      1\. unknown - gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua:91
    

    Here is one line out of 34:

    GM:AddPointShopItem("ots33", "OTs-33 Pernach", nil, ITEMCAT_GUNS, 30, "fas2_ots33")
    

    It won’t open the aresenal.  It just opens really quickly and then closes.



  • I added new weapons to zombie survival to the pointshop.

    Why does it give me this when I open the arsenal?

    
    [ERROR] gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua:225: attempt to index field 'Entity' (a nil value)
      1\. OpenPointsShop - gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua:225
       2\. unknown - LuaCmd:1
    
    [ERROR] gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua:91: attempt to index field 'm_NameLabel' (a nil value)
      1\. unknown - gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua:91
    

    Here is one line out of 34:

    GM:AddPointShopItem("ots33", "OTs-33 Pernach", nil, ITEMCAT_GUNS, 30, "fas2_ots33")
    

    It won’t open the aresenal.  It just opens really quickly and then closes.


Log in to reply
 

4
Online

11023
Users

15276
Topics

297664
Posts

Looks like your connection to NoXiousNet was lost, please wait while we try to reconnect.