Trouble in Terrorist town

Can someone tell me how to get that working because i put it in the search and shared.lua and it says the table is nil or something like that, the rest of it works i just do not know how to make that part work.

WeaponToIcon = {
[AMMO_JIHAD]=“jihad”,

local e2w = {
[AMMO_JIHAD]=“jihad”,

As far as I can see, you havent close either of the tables:



WeaponToIcon = { -- open
[AMMO_JIHAD]="jihad"
} -- closed

local e2w = { -- open
[AMMO_JIHAD]="jihad"
} -- closed


No what i mean is that when i put those 2 codes into the shared.lua and cl_search.lua it gives me the error and i just wanted to know how i can fix that error. If you look at the ttt gamemode folder it has like

WeaponToIcon = {
[AMMO_PISTOL]=“pistol”,
[AMMO_MAC10]=“mac”,
[AMMO_SHOTGUN]=“shotgun”,
[AMMO_RIFLE]=“scout”,
[AMMO_DEAGLE]=“deagle”,
[AMMO_CROWBAR]=“cbar”,
[AMMO_SIPISTOL]=“silenced”,
[AMMO_C4]=“c4”,
[AMMO_JIHAD]=“jihad”,<------- Error and i don’t see problem.
[AMMO_KNIFE]=“knife”,
[AMMO_M249]=“m249”,
[AMMO_M16]=“m16”,
[AMMO_DISCOMB]=“nades”,
[AMMO_MOLOTOV]=“nades”,
[AMMO_SMOKE]=“nades”,
[AMMO_FLARE]=“flare”,
[AMMO_POLTER]=“polter”,
[AMMO_TELEPORT]=“tport”,
[AMMO_RADIO]=“radio”,
[AMMO_DEFUSER]=“defuser”,
[AMMO_WTESTER]=“wtester”,
[AMMO_BEACON]=“beacon”,
[AMMO_HEALTHSTATION]=“health”
}

[editline]04:20PM[/editline]

How do i make this bit work which ruins my server?

[AMMO_JIHAD]=“jihad”, <------- this

Nevermind i managed to figure it out so it’s working now.