Hallo
Ich habe mir einen Pay Script erstelllt er geht leider nicht:
Error Code:atemb to contable with sting
Lua
function pay_func ( player, cmd, target, money )
local money = tonumber ( money )
local target = getPlayerFromName ( target )
money = math.abs ( math.floor ( money + 0.5 ) )
local pmoney = getElementData( player , "Geld")
if pmoney >= money then
takePlayerSaveMoney ( player, money )
setElementData( player , "Geld" , getElementData( player ) - money )
else
outputChatBox("Soviel geld hast du nicht" , player )
end
end
addCommandHandler ( "pay", pay_func )
Alles anzeigen