Welcome, Guest. Please login or register.
Did you miss your activation email?
September 19, 2024, 11:52:36 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: What am i doing wrong? Arming tool
Pages: [1]
Author Topic: What am i doing wrong? Arming tool  (Read 3457 times)
kaytaro
Poster

Posts: 37


« on: December 18, 2010, 08:03:06 PM »

I get the tool ingame but when i want to select any of the weapons etc its blank :S



local weps = {
  weapon_zm_pistol = {name="Pistol", snd="item_ammo_pistol_ttt"},
  weapon_zm_shotgun = {name="Shotgun", snd="item_box_buckshot_ttt"},
  weapon_zm_mac10 = {name="MAC10", snd="item_ammo_smg1_ttt"},
  weapon_zm_revolver = {name="Deagle", snd="item_ammo_revolver_ttt"},
  weapon_zm_rifle = {name="Rifle", snd="item_ammo_357_ttt"},
  weapon_zm_sledge = {name="HUGE249", snd=nil},
  weapon_zm_molotov = {name="Fire nade", snd=nil},
 
  weapon_ttt_confgrenade = {name="Discombobulator", snd=nil},
  weapon_ttt_smokegrenade = {name="Smoke nade", snd=nil},
  weapon_ttt_m16 = {name="M16", snd="item_ammo_pistol_ttt"},

  ttt_random_weapon = {name="Random weapon", snd=nil},
  ttt_random_ammo = {name="Random ammo", snd=nil},

  weapon_ttt_p228 = {name="P228", snd="item_ammo_pistol_ttt"},
  weapon_ttt_glock = {name="GLOCK", snd="item_ammo_pistol_ttt"},
  weapon_ttt_famas = {name="FAMAS", snd="item_ammo_pistol_ttt"},
  weapon_ttt_galil = {name="GALIL", snd="item_ammo_pistol_ttt"},
  weapon_ttt_ak47 = {name="AK47", snd="item_ammo_pistol_ttt"},
  weapon_ttt_aug = {name="AUG", snd="item_ammo_pistol_ttt"},
  weapon_ttt_mp5 = {name="MP5", snd="item_ammo_smg1_ttt"},
  weapon_ttt_p90 = {name="P90", snd="item_ammo_smg1_ttt"},
  weapon_ttt_pump = {name="Pump Shotty", snd="item_box_buckshot_ttt"},
  weapon_ttt_sg550 = {name="sg550", snd="item_ammo_357_ttt"},
  weapon_ttt_katana = {name="katana", snd="item_ammo_357_ttt"},

  ttt_playerspawn = {name="Player spawn", snd=nil}
}

local mdls = {
  weapon_zm_pistol = "models/weapons/w_pist_fiveseven.mdl",
  weapon_zm_shotgun = "models/weapons/w_shot_xm1014.mdl",
  weapon_zm_mac10 = "models/weapons/w_smg_mac10.mdl",
  weapon_zm_revolver = "models/weapons/w_pist_deagle.mdl",
  weapon_zm_rifle = "models/weapons/w_snip_scout.mdl",
  weapon_zm_sledge = "models/weapons/w_mach_m249para.mdl",
  weapon_zm_molotov = "models/weapons/w_eq_flashbang.mdl",

  weapon_ttt_sg550 = "models/weapons/w_snip_sg550.mdl",
  weapon_ttt_p228 = "models/weapons/w_pist_p228.mdl",
  weapon_ttt_glock = "models/weapons/w_pist_glock18.mdl",
  weapon_ttt_famas = "models/weapons/w_rif_famas.mdl",
  weapon_ttt_galil = "models/weapons/w_rif_galil.mdl",
  weapon_ttt_ak47 = "models/weapons/w_rif_ak47.mdl",
  weapon_ttt_aug = "models/weapons/w_rif_aug.mdl",
  weapon_ttt_mp5 = "models/weapons/w_smg_mp5.mdl",
  weapon_ttt_p90 = "models/weapons/w_smg_p90.mdl",
  weapon_ttt_pump = "models/weapons/w_shot_m3super90.mdl",
  weapon_ttt_katana = "models/weapons/w_katana.mdl"
  weapon_ttt_confgrenade = "models/weapons/w_eq_fraggrenade.mdl",
  weapon_ttt_smokegrenade = "models/weapons/w_eq_smokegrenade.mdl",
  weapon_ttt_m16 = "models/weapons/w_rif_m4a1.mdl",

  ttt_random_weapon = "models/weapons/w_shotgun.mdl",
  ttt_random_ammo = "models/Items/battery.mdl",

  item_ammo_pistol_ttt= "models/items/boxsrounds.mdl",
  item_ammo_smg1_ttt= "models/items/boxmrounds.mdl",
  item_ammo_revolver_ttt = "models/items/357ammo.mdl",
  item_ammo_357_ttt = "models/items/357ammo.mdl",
  item_box_buckshot_ttt = "models/items/boxbuckshot.mdl",

  ttt_playerspawn = "models/player.mdl"
};

Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #1 on: December 19, 2010, 08:56:02 AM »

I don't see anything wrong with your edits in the part you've pasted.
kaytaro
Poster

Posts: 37


« Reply #2 on: December 19, 2010, 02:07:53 PM »

hmm ok, when i was given the code originall there was a ~ECHO before parts of it which i had no clue what it was for

but i got this  message:
[addons\tttweapons\lua\weapons\gmod_tool\stools\tttweaponplacer.lua:73] '}' expected (to close '{' at line 53) near 'weapon_ttt_confgrenade'

« Last Edit: December 19, 2010, 02:19:52 PM by kaytaro »
kaytaro
Poster

Posts: 37


« Reply #3 on: December 19, 2010, 03:24:28 PM »

never mind >.< i found the problem.. i feel so stupid lol
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: What am i doing wrong? Arming tool « 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.007 seconds with 18 queries.