Hello !
I have try this code on my server
[code]
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
[/code]
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
Sorry, you need to Log In to post a reply to this thread.