Jump to content

اصلاح كود


Recommended Posts

اش الخطاء هون

  
function PlayerSim (thePreviousAccount, theCurrentAccount, autoLogin) 
if  not (isGuestAccount (getPlayerAccount (source))) then 
local accountData = getAccountData (theCurrentAccount, "Cart") 
if (accountData) then 
local playerMoney = getAccountData (theCurrentAccount, "Cart") 
end    
end 
end 
addEventHandler ("onPlayerLogin", getRootElement(), PlayerSim) 
  
  
function onQuitSim (quitType, reason, responsibleElement) 
if not (isGuestAccount (getPlayerAccount (source))) then 
account = getPlayerAccount (source) 
if (account) then 
setAccountData (account, "Cart", tostring (getElementData(source,"Cart"))) 
end 
end 
end 
addEventHandler ("onPlayerQuit", getRootElement(), onQuitSim) 
  

Link to comment
  • Other Languages Moderators

مافيه خطأ برمجي بالكود، كودك ما يسوي شي لما لاعب يسجل دخول

انت جالس تجيب الاكاونت داتا في سطر 4

تتحقق ان الأكاونت الداتا موجود في سطر 5

ترجع تجيب الأكاونت داتا في سطر 6

يعني انت تجيب الأكاونت داتا و ما تسوي فيها شي

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