Jump to content

طب حل خطأ بكود فلوس


Recommended Posts

السلام عليكم ورحمة الله وبركاته

من يومين كذا كنت بصنع لوحه فيها بعد المميزات ومن الميزات

كود ارسال فلوس لاصدقائك بالسيرفر

والحمدلله خلصته وكلشي تمام لكن بق غريب بيه حاولت اصلحو لكن ما عرفت

وهي انك تقدر ترسل فلوس بالسالب للاعبين

يعني -999999

ذا الكود الى يحصل منه البق

function smtp (player,rec,moneys) 
    if rec then 
        local receiver = getPlayerFromName(rec) 
        local money = getPlayerMoney(player) 
        if (money >= moneys) then 
        outputChatBox ("#FF0000* #FFCC00Was Sent #FF00FF$"..(moneys).." #FFCC00To #FF00FF"..rec.."", player, 0, 255, 0,true) 
        outputChatBox ("#FF0000* #FFCC00You Have Received #FF00FF$"..(moneys).." #FFCC00From #FF00FF"..getPlayerName(player).."", receiver, 0, 255, 0,true) 
        givePlayerMoney ( receiver, moneys ) 
        takePlayerMoney ( player, moneys ) 
    else 
        outputChatBox ("* You Don’t Have Enough Money", player, 255, 0, 0) 
    end 
end 
end 
addEvent ("smtp", true) 
addEventHandler ("smtp", getRootElement(), smtp) 

هل من حلول :D:(

Edited by Guest
Link to comment
function smtp (player,rec,moneys) 
    if rec then 
        local receiver = getPlayerFromName(rec) 
        local money = getPlayerMoney(player) 
        if (money >= moneys) then 
        if (tonumber(moneys)>=200) then 
        outputChatBox ("#FF0000* #FFCC00Was Sent #FF00FF$"..(moneys).." #FFCC00To #FF00FF"..rec.."", player, 0, 255, 0,true) 
        outputChatBox ("#FF0000* #FFCC00You Have Received #FF00FF$"..(moneys).." #FFCC00From #FF00FF"..getPlayerName(player).."", receiver, 0, 255, 0,true) 
        givePlayerMoney ( receiver, moneys ) 
        takePlayerMoney ( player, moneys ) 
    else 
        outputChatBox ("* You Don’t Have Enough Money", player, 255, 0, 0) 
    end 
end 
end 
addEvent ("smtp", true) 
addEventHandler ("smtp", getRootElement(), smtp) 

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...