General > Developers Corner
Trying to fix GetInfoNum in my plugin
(1/1)
pikkip:
Hello people!
So here's the deal, I've been trying to fix a few old plugins this day, and I got stuck on this error right now.
--- Code: ---lua/autorun/server/sv_physgun.lua:20: bad argument #2 to 'GetInfoNum' (number expected, got no value)
--- End code ---
The 20th line in the lua looks like this:
--- Code: ---if ply:GetInfoNum( pb_.. "enabled" ) ~= 0 then
--- End code ---
and ofc. the pb_ is something else (BEFORE the code above)
--- Code: ---local pb_ = "physgun_buildmode_"
--- End code ---
ANY idea why it calls errors? I don't see any form for additional agument on the line...
pikkip:
Well, bloody darn, It turned out that it needed another argument after i read the line again... sorry 'bout that fokes!
Megiddo:
That rubber duck sure is mystical, no?
JamminR:
Wow. I love that page.
They had me at: (emphasis mine)
--- Quote --- we insist that people who ask questions put some effort into their question, and we're kind of jerks about it
--- End quote ---
EDIT - I just read the entire page.
And realized...I make an awesome duck, and am proud of that fact.
I may not always know the exact <insert code construct/tech construct/whatever geek question> from scratch...but I'm tech-geek enough to give ideas back to those who ask me questions.
Everyone needs a duck for a friend.
Navigation
[0] Message Index
Go to full version