whats wrong with this code?

local function GiveMoneyWhenKilledSomeone(victim, inflictor, killer, Team)
if killer:Team() == TEAM_VOLK and victim:Team() == TEAM_CITIZEN then
killer:AddMoney(100)
end
hook.Add("PlayerDeath", "MyPlayerDeathHook", GiveMoneyWhenKilledSomeone)

you should have 2 ends their

[lua]
local function GiveMoneyWhenKilledSomeone(victim, inflictor, killer, Team)
if killer:Team() == TEAM_VOLK and victim:Team() == TEAM_CITIZEN then
killer:AddMoney(100)
end
end
hook.Add(“PlayerDeath”, “MyPlayerDeathHook”, GiveMoneyWhenKilledSomeone)
[/lua]

tried but im getting a error, hold on im gonna post it

[editline]12:36AM[/editline]

AWW i failed :(((((( , its TEAM_RECRUIT not TEAM_CITIZEN XD

I believe hook.Add ends with its own “end” followed by a close parenthesee so
hook.Add(stuff,stuff…end)
—EDIT—
I was wrong I’m glad you figured it out

what?

He was wrong, disregard what he had stated.

Any more errors?

Or did you already fix it…

Would also help if you had posted the error