An unusual error

Hi, i’m building a recursive method for load classes and textures with a included file called from the client, but…

[lua]
uAS,uEN,uRE,uSU,uPI = {}

LoadWEPS(uAS,“primary/usa/assault/”)
LoadWEPS(uEN,“primary/usa/engineer/”)
LoadWEPS(uRE,“primary/usa/recon/”)
LoadWEPS(uSU,“primary/usa/support/”)
LoadWEPS(uSU,“pistols/usa/”)

usaWeapons = {uAS,uEN,uRE,uSU,uPI}

rAS,rEN,rRE,rSU,rPI = {}

LoadWEPS(rAS,“primary/usa/assault/”)
LoadWEPS(rEN,“primary/usa/engineer/”)
LoadWEPS(rRE,“primary/usa/recon/”)
LoadWEPS(rSU,“primary/usa/support/”)
LoadWEPS(rSU,“pistols/usa/”)

rusWeapons = {rAS,rEN,rRE,rSU,rPI}

//scpecializations = { “speed”, “charger”,“grenades”}

//miscs = {“medkit”,“weapon_rpg”,“weapon_slam”,“weapon_slam”}

function LoadWEPS(table,path)

local files, directories = file.Find( "materials/entities/weapons/"..path, "GAME" )

for k,v in pairs(files) do

	table.insert(table,files)
	trace(files)

end

end
[/lua]

[lua]

[ERROR] gamemodes/bf3dm/gamemode/sh_loadout.lua:5: attempt to call global ‘LoadWEPS’ (a nil value)

  1. unknown - gamemodes/bf3dm/gamemode/sh_loadout.lua:5
  2. include - [C]:-1
    3. unknown - gamemodes/bf3dm/gamemode/cl_playerbar.lua:5
    4. include - [C]:-1
    5. unknown - gamemodes/bf3dm/gamemode/cl_init.lua:12
    [/lua]

I don’t always post here, but when i do that is because my headache will kill me…