why wont this code work?

local function rankup( ply )
if ply:IsAdmin() or ply:Team() == TEAM_AMERICANSOL then
if player:Frags() > 10 then
Notify(ply, 1, 4,"TEST")
end
end
end
hook.Add("rankup", "rankup", rankup)

Where are you doing hook.Call(“rankup”, ply) ?

nowhere i guess X)

Derp. When the player rank up, for example, he kills an npc:
[lua]function GM:OnNPCKilled( victim, killer, weapon )
hook.Call(“rankup”, killer);
end[/lua]

Though I have no idea why you would use a hook for that…

-snip-

Then why expect it to work. Did you think Lua magically sensed what you wanted and created it for you?

nah, i just realised that i failed.