I created a script to give you money everytime you kill a zombie/mob. However, it gives me an error with a particular part of the script.
local function OnNPCKilled( victim, killer )
if ValidEntity( killer ) and killer:IsPlayer( ) then
killer:AddMONEY( REWARD_MONEY )
end
end
It gives me an artihmatic error but I can’t see the problem. Can someone help me?
(User was banned for this post ("Wrong forum" - mahalis))