• Constant error meesage
    6 replies, posted
Im getting this constant error message [CODE][@lua\includes\extensions\table.lua:103] bad argument #1 to 'pairs' (table expected, got number)(Hook: HUDPaint) [/CODE] Anyone know a fix? Its spamming my console. I did post this in the 'What do you need help with' thread but someone just dumped a butt tonne of code on it pushing all messages back..
It's self explanatory, if you can't figure it out then I suggest reading up on the language Lua. I recommend it, I find it a lot easier to be able to figure simple things like this out myself; rather than ask everyone about every single problem I have. [editline]e[/editline] I'm also not trying to be rude or anything, I'm just giving you advice for the long run. Also it looks like you're developing on Garry's Mod 12, because there is no larger stack trace as in Garry's Mod 13 there would be. You shouldn't be working on anything in Garry's Mod 12 unless you want to expect problems once it comes in October.
[QUOTE=DaneSomdahl;37922959]It's self explanatory, if you can't figure it out then I suggest reading up on the language Lua. I recommend it, I find it a lot easier to be able to figure simple things like this out myself; rather than ask everyone about every single problem I have. [editline]e[/editline] I'm also not trying to be rude or anything, I'm just giving you advice for the long run. Also it looks like you're developing on Garry's Mod 12, because there is no larger stack trace as in Garry's Mod 13 there would be. You shouldn't be working on anything in Garry's Mod 12 unless you want to expect problems once it comes in October.[/QUOTE] I am working on understanding and writing Lua, but I simply cant find this error in the code, Its probabaly staring right up me. And for that reason, Im wondering if you can tell me what it is, so I can learn from things like this
Is there any more of a trace than that? Also which version of Garry's Mod are you using? :S
Its just that error message, repeated over and over. Gmod 12. I know I should be on 13 but Im leaning LUA either way so It doesnt bother me at the moment.
You should really just do that on 13, because you'll be able to get a more in depth stack trace of everything if errors occur.
The code is showing this now: [CODE]ERROR: GAMEMODE:'HUDPaint' Failed: [@lua\includes\extensions\table.lua:103] bad argument #1 to 'pairs' (table expected, got number)[/CODE] [B]FIXED[/B] Change [CODE]AddAgenda("Police agenda", TEAM_MAYOR, TEAM_CHIEF, {TEAM_POLICE})[/CODE] To [CODE]AddAgenda("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})[/CODE]
Sorry, you need to Log In to post a reply to this thread.