I get this error, anyone can help?
Hook 'CreditNote' Failed: [gamemodes\mygamemode\gamemode\init.lua:117] attempt to perform arithmetic on a boolean value
the line is:
[lua]killer:SetPData(“money”, killer:GetPData(“money”) + 10 )[/lua]
the pdata starts like this:
[lua]function GM:PlayerInitialSpawn( ply )
if ply:GetPData(“money”) == 0 or nil then
ply:SetPData(“money”, 0)
end
end[/lua]
Anyone know why its coming out as a boolean and not a number?
[editline]25th February 2011[/editline]
also when i run the command to print my cash i get this
[gamemodes\mygamemode\gamemode\init.lua:125] attempt to concatenate a boolean value