Adham Posted April 21, 2017 Share Posted April 21, 2017 ايه نسيها صح , بس ايكو عطاه الكود فوق 1 Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 هذا موضوعنا , ويقول انه م في خطأ وم في فاصلة منسية , صلي ساعة افهمه !@Deativated Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 آقنع الأخ ايكو , ويقولك شغال @Deativated Link to comment
^iiEcoo'x_) Posted April 21, 2017 Share Posted April 21, 2017 م شفتها افكرك تقول عن ال space ! Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 صلي ساعتين اقولك ناسي فاصلة وتقلي لازم انت بـ مستشفى المجانين , -_-"@#_iMr.[E]coo Link to comment
MA[S]RIY Posted April 22, 2017 Author Share Posted April 22, 2017 يا جماعه استهدو بالا ش حصل علشان ذا كلهو شكرا للكل Link to comment
N3xT Posted April 22, 2017 Share Posted April 22, 2017 On ٢١/٤/٢٠١٧ at 00:21, #_iMr.[E]coo said: addEventHandler ( "onPlayerLogout" , root , function ( ) setAccountData ( getPlayerAccount ( source ) , "aSaveMoney" , tonumber ( getPlayerMoney ( source ) ) ) end ) addEventHandler ( "onPlayerQuit" , root , function ( ) setAccountData ( getPlayerAccount ( source ) , "aSaveMoney" , tonumber ( getPlayerMoney ( source ) ) ) end ) addEventHandler ( "onPlayerLogin" , root , function ( ) givePlayerMoney ( source , tonumber ( getAccountData ( getPlayerAccount ( source ) , "aSaveMoney" ) ) ) end ) إحتمال كبير كودك خطأ ، احيانا راح يشتغل واحيانا لا راجع الويكي، حدث تسجيل الخروج Link to comment
^iiEcoo'x_) Posted April 22, 2017 Share Posted April 22, 2017 10 minutes ago, N3xT said: إحتمال كبير كودك خطأ ، احيانا راح يشتغل واحيانا لا راجع الويكي، حدث تسجيل الخروج ما شفت شي بالويكي Link to comment
#BrosS Posted April 22, 2017 Share Posted April 22, 2017 function Save() local Acc = getPlayerAccount(source) if ( Acc ) then local bMoney = getPlayerMoney(source) setAccountData(Acc, "MoneySave", playerCash) setPlayerMoney(source, 0) end end addEventHandler("onPlayerQuit", getRootElement(), Save) addEventHandler("onPlayerLogout", getRootElement(), Save) function Recover() local Acc = getPlayerAccount(source) if (Acc) then local SaveData = getAccountData(Acc, "MoneySave") if (SaveData) then setPlayerMoney(source, tonumber(SaveData)) end end end addEventHandler("onPlayerLogin", getRootElement(), Recover) Link to comment
#BrosS Posted April 22, 2017 Share Posted April 22, 2017 21 minutes ago, 3laa33 said: @#BrosS راجع سطر رقم 5 function Save() local Acc = getPlayerAccount(source) if ( Acc ) then local bMoney = getPlayerMoney(source) setAccountData(Acc, "MoneySave", bMoney) setPlayerMoney(source, 0) end end addEventHandler("onPlayerQuit", getRootElement(), Save) addEventHandler("onPlayerLogout", getRootElement(), Save) function Recover() local Acc = getPlayerAccount(source) if (Acc) then local SaveData = getAccountData(Acc, "MoneySave") if (SaveData) then setPlayerMoney(source, tonumber(SaveData)) end end end addEventHandler("onPlayerLogin", getRootElement(), Recover) 2 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now