Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 04:00:26 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: DNA Scanner
Pages: [1]
Author Topic: DNA Scanner  (Read 4762 times)
Manmax75
Poster

Posts: 254


Programming Guy


« on: August 21, 2010, 03:10:52 AM »

I modded the DNA scanner so it can be bought again, which wasent hard at all, all I did was modify the code so it looked like this:


SWEP.Kind = WEAPON_ROLE
SWEP.CanBuy = {ROLE_DETECTIVE}
SWEP.WeaponID = AMMO_WTESTER
SWEP.LimitedStock = true


Anyway, after doing this I get this error:

weapons\weapon_ttt_wtester\shared.lua:548: attempt to index local 'bar' (a nil value)

and I can't close the DNA GUI

Ride Forward and Thrust Your Pelvis In The Dark Void. The One Induced By Pleasure Yet Cast By The Bigger Picture.
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #1 on: August 21, 2010, 08:25:14 AM »

The error is unrelated to the change in that bit of code. Maybe you accidentally changed something else, maybe you're running an old version on a linux server.
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #2 on: August 22, 2010, 05:14:00 AM »

I get the same error, and I'm running the current version on a windows server.
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #3 on: August 22, 2010, 07:27:49 AM »

Could you check something on your server?
In /gamemodes/terrortown/gamemode/vgui/ there should be a "ProgressBar.lua" file. If it's not there, that could be the problem, but that's unlikely. Anyway, if you open the file and scroll all the way down, at the bottom should be a line like:
vgui.Register( "TTTProgressBar", PANEL, "DPanel" )

Is it different in your case?

I'm asking because the error happens when it fails to create the progress bar interface element, which should not be possible if the above stuff is correct
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: DNA Scanner « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.009 seconds with 17 queries.