Jump to content

تصحيح كود لمود الجولد


SycroX

Recommended Posts

شباب انا مسوي مود جولد

و مسوي له توزيع

و مسوي اقدر اعطي لاعب فلوس

الحين ابا اسوي حفظ له

بس

اتا جبت مود حفظ الفلوس العادي و حولتو من فلوس عادية لفلوس جولد

  
node = xmlLoadFile ("accounts.xml") 
  
function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) 
    if not (isGuestAccount (getPlayerAccount(source))) then 
        local accountData = getAccountData (theCurrentAccount, "moneycoins") 
        if (accountData) then 
            local playerMoney = getAccountData(theCurrentAccount, "moneycoins") 
            setPlayerMoney(source, playerMoney) 
             
        else 
     
        setPlayerMoney(source, 50000) 
        end 
    end 
end 
addEventHandler("onPlayerLogin", getRootElement(), playerLogin) 
  
function onQuit() 
    if not (isGuestAccount (getPlayerAccount (source))) then 
        account = getPlayerAccount (source) 
        if (account) then 
            setAccountData(account,"moneycoins", tostring(getPlayerMoney(source))) 
        end 
    end 
end 
addEventHandler("onPlayerQuit", getRootElement(), onQuit) 
  

بس للأسف ما اشتغل و ما كان يحفظ شي

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

Link to comment
function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) 
    if not (isGuestAccount(getPlayerAccount(source))) then 
        local accountData = getAccountData (theCurrentAccount, "moneycoins") 
        if (accountData) then 
            local playerMoney = getAccountData(theCurrentAccount, "moneycoins") 
            setPlayerMoney(source, playerMoney) 
        else 
            setPlayerMoney(source, 50000) 
        end 
    end 
end 
addEventHandler("onPlayerLogin", getRootElement(), playerLogin) 
  
function onQuit() 
    if not (isGuestAccount(getPlayerAccount (source))) then 
        account = getPlayerAccount(source) 
        if (account) then 
            setAccountData(account, "moneycoins", tostring(getPlayerMoney(source))) 
        end 
    end 
end 
addEventHandler("onPlayerQuit", getRootElement(), onQuit) 

كودك ما فيه خطأ

راح تقولي كيف عرفت

رحت السيرفر المجاني و اختبرته شغال كويس و يجيب لي الفلوس

8RhRO5.png

شوف الفلوس ف الشات هذه الداتا

+

اتأكد من المود نفسه ممكن في شيء معطل الوظيفة

Link to comment
  • 3 weeks later...

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