So, call me a noob or an idiot. Idc. I was just wondering, can anyone tell me if these errors are something to be worried about or not.
[url]http://pastebin.com/cSsvZvM0[/url]
Okay, now this one,
[ERROR] gamemodes/terrortown/entities/weapons/weapon_ttt_intervention/shared.lua:141: attempt to index field 'LensTable' (a nil value)
1. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_intervention/shared.lua:141
Shows up probably about 50+ times when I zoom into an intervention once. Now, I put m9k weapons into the server, and were given these sweps since Idk how to do them.
[url]https://www.dropbox.com/sh/f5039pkq3bhbf1n/sPczw1IFhh[/url]
Just looking for some answers maybe. Just for all the errors really.Thanks in advance
[B]ALL[/B] lua errors is something to worry about.
[editline]29th March 2014[/editline]
It errors because of these two lines:
[code]
surface.SetTexture(surface.GetTextureID("scope/gdcw_parabolicsight.vtf")) -- Line 140, .vtf is not supposed to be there
surface.DrawTexturedRect(self.LensTable.x, self.LensTable.y, self.LensTable.w, self.LensTable.h) -- SWEP.LensTable is not defined, you'll have to define it somewhere in your SWEP[/code]
Well, is there a way I can fix them or something? I mean, I know nothing pretty much about lua coding, and every time I ask for help on here I get some kind of snobby no. Sorry, just saying
[QUOTE=DynamicAura;44391352]Well, is there a way I can fix them or something? I mean, I know nothing pretty much about lua coding, and every time I ask for help on here I get some kind of snobby no. Sorry, just saying[/QUOTE]
Robotboy put comments on what to do next to the code.
Okay, apologies, sooo, how would I define the lenstable? lol. As I said, I know nothing about the coding. I've tried googling the stuff, there is no noob friendly things.
local variablename = something is how you define something, but looking at the code, you might at well just put numbers in for the variables. It's impossible to tell what LensTable is supposed to be.
Well, I probably won't be able to do that. Question, anyone have an intervention swep that I can use? Just to clear this up quickly? Also, are the other errors not important?
Uh, just replace the LensTable stuff with numbers and the SWEP will work fine.
Sorry, you need to Log In to post a reply to this thread.