My errors are SetPlayerClass - attempt to use unknown player class player_human! (This causes my player class not to load.)
and
[ERROR] gamemodes/juggernauts player classes wip/gamemode/init.lua:51: attempt to index local 'ent' (a nil value)
1. Call - gamemodes/juggernauts player classes wip/gamemode/init.lua:51
2. unknown - gamemodes/juggernauts player classes wip/gamemode/init.lua:17. (I have had this one forever but it doesn't seem to affect anything it is just annoying.)
I registered my player class using this:
player_manager.RegisterClass( "player_human", PLAYER, "player_default" )
With the second error there is supposedly an error between these 2 lines of code
ent:SetModel( info.model )
(Line 51) and
hook.Call( "PlayerSetHandsModel", GAMEMODE, ply, ent )
(Line 17)
If this is hard to understand i can show you the whole files.
Thanks for any help I get!
[lua]l2use box nerd[/lua]
[highlight](User was banned for this post ("help or don't post." - postal))[/highlight]
[QUOTE=Nornan12;45655993][lua]l2use box nerd[/lua][/QUOTE]
Great bump gg.
@OP, obviously the ent you're indexing in that hook doesn't exist. Make sure it does. PS, it's hard to fix an error with ONE line!!
[QUOTE=crazyscouter;45656005]Great bump gg.
@OP, obviously the ent you're indexing in that hook doesn't exist. Make sure it does. PS, it's hard to fix an error with ONE line!![/QUOTE]
Well that error has been there forever and it still works. (Hand models still appear) But what do you recommend I do about these errors? (If needed I can provide larger parts of my game mode or the whole thing.)
[QUOTE=D3athChick3n;45658647]Well that error has been there forever and it still works. (Hand models still appear) But what do you recommend I do about these errors? (If needed I can provide larger parts of my game mode or the whole thing.)[/QUOTE]
The way LUA errors are printed is that the one at the top is the main problem, and the ones below it are what else it's affecting.
One line is hard to decipher, but it sounds like you're calling "ent:" inside a function that's already
ENT:FUNCTIONNAME( PARAMS )
maybe try self:SetModel( info.model ) ?
[QUOTE=solid_jake;45659373]The way LUA errors are printed is that the one at the top is the main problem, and the ones below it are what else it's affecting.
One line is hard to decipher, but it sounds like you're calling "ent:" inside a function that's already
ENT:FUNCTIONNAME( PARAMS )
maybe try self:SetModel( info.model ) ?[/QUOTE]
That isn't even the main problem. It is SetPlayerClass - attempt to use unknown player class player_human!
But I registered that class!
Sorry, you need to Log In to post a reply to this thread.