• Problem with and old gamemode. No include
    3 replies, posted
So I got an old gamemode from a friend and im trying to test it, but when A player enters the server he can load because of these errors: [CODE] ***** [ERROR] gamemodes/cityrp/gamemode/cl_init.lua:246: Tried to use a NULL entity! 1. GetNetworkedEntity - [C]:-1 2. unknown - gamemodes/cityrp/gamemode/cl_init.lua:246 ***** [ERROR] gamemodes/cityrp/gamemode/cl_init.lua:900: attempt to index field 'Config' (a nil value) 1. unknown - gamemodes/cityrp/gamemode/cl_init.lua:900 ***** Couldn't include file 'scoreboard\scoreboard.lua' (File not found) (@gamemodes/cityrp/gamemode/cl_init.lua (line 7)) *** [ERROR] gamemodes/cityrp/gamemode/cl_init.lua:951: attempt to index field 'Config' (a nil value) 1. unknown - gamemodes/cityrp/gamemode/cl_init.lua:951 *** Couldn't Load Init Script: 'cityrp/gamemode/cl_init.lua' [/CODE] Also this is the code in cl_init.lua: [CODE]AddCSLuaFile("sh_init.lua"); include("scoreboard/scoreboard.lua"); ... ... ... --[ -- Give the player a first-person view of their corpse local pingpong = CurTime() function GM:CalcView( pl, origin, angles, fov ) -- Get their ragdoll local ragdoll = lpl:GetNetworkedEntity("Ragdoll") [B][U]---- line 246[/U][/B] if pingpong <= CurTime() then pingpong = CurTime() + 5 --print(ragdoll,pl) end -- Check if it's valid if( !IsValid(ragdoll) ) then return self.BaseClass:CalcView(pl,origin,angles,fov) end --find the eyes local eyes = ragdoll:GetAttachment( ragdoll:LookupAttachment( "eyes" ) ); -- setup our view if !eyes then return self.BaseClass:CalcView(pl,origin,angles,fov) end local view = { origin = eyes.Pos, angles = eyes.Ang, fov = 90, }; return view; end --]] [/CODE] Those are the files in the gamemode: [img]http://i.imgur.com/GRv8lci.png[/img] Please help :( Thanks for helpers!!!!
tbh don't use that shit. iirc it's Cider / Applejack CityRP. A good way would be to use nutscript, catherine or [URL="https://bitbucket.org/GamerGambit/evolved-role-play/src"]evolved roleplay[/URL] and do it yourself.
[QUOTE=Tomelyr;48048587]tbh don't use that shit. iirc it's Cider / Applejack CityRP. A good way would be to use nutscript, catherine or [URL="https://bitbucket.org/GamerGambit/evolved-role-play/src"]evolved roleplay[/URL] and do it yourself.[/QUOTE] Actully I just want to check the HUD and F1 menu Thats it :P
[QUOTE=WolfRayet;48048850]Actully I just want to check the HUD and F1 menu Thats it :P[/QUOTE] Then just remove code causing errors in which they don't change anything to the HUD and f1 menu
Sorry, you need to Log In to post a reply to this thread.