Jump to content

I need help for lua


Hypnos

Recommended Posts

i use tonumber.Panel is working but I do not want to error.

Error ;

XVZhLnl.png

(Server-Side)

addEvent("paraGonder",true) 
addEventHandler("paraGonder", getRootElement(), 
function(player,sentMoney) 
local name = getPlayerName(source) 
local name1 = getPlayerName(player) 
local getmoney = tonumber(getPlayerMoney(source)) 
if tonumber(sentMoney) <= getmoney and tonumber(sentMoney) >= 0 and tonumber(sentMoney) ~= 0 then 
local give = givePlayerMoney (player,tonumber(sentMoney)) 
local take = takePlayerMoney (source,tonumber(sentMoney)) 
if give and take then 
outputChatBox("#0dff00Para Gönderdin. #ffff00"..name1.." #ff8400[Miktar: $"..sentMoney.."]",source,0,255,255,true) 
outputChatBox("#ffff00"..name.."'#0dff00dan Para Geldi. #ff8400[Miktar: $"..sentMoney.."]",player,0,255,255,true) 
end 
elseif getmoney <= tonumber(sentMoney) or 0 >= tonumber(sentMoney) then 
outputChatBox("Yeterli Paran Yok",source,255,0,0,true) 
elseif not tonumber(sentMoney) == 0 then 
outputChatBox("HATA: Para",source,255,0,0,true) 
end 
end  
) 

How can I solve this error?

:arrowup: Waiting For Help :arrowup:

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...