I have a problem

Hello !

I have try this code on my server



function pmeta:HasMoney(amount)

	if tonumber(self:GetPData(MoneyName)) >= tonumber(amount) then
	
		return true
		
	else
	
		self:RedNotify( "You don't have enough money !" )
		return false
		
	end	
	
end	


return “attempt to compare number with nil” in the console.

Can you help me please ?

self:GetPData(MoneyName) or amount is a nil value (does not exist).

-snip- ninja’d