MA[S]RIY Posted April 20, 2017 Share Posted April 20, 2017 السلام عليكم addEventHandler ( 'onPlayerLogout' getRootElement(), Function ( source ) pmoney = getPlayerMoney ( source ) setAccountData ( getPlayerAccount ( source ), "Data", pmoney) end ) addEventHandler ( 'onPlayerLogin', getRootElement ( ), Function () local money = getAccountData ( getPlayerAccount ( source ), "Data" ) setPlayerMoney ( source, money ) end ) الكود ذا وظيفته انو يحفظ فلوس الاعب علي الاكونت داتا ################## وش المشكله الي بالكود؟ الدي بق م يجيب اخطاء Link to comment
^iiEcoo'x_) Posted April 20, 2017 Share Posted April 20, 2017 (edited) 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 ) Edited April 20, 2017 by #_iMr.[E]coo Link to comment
Master_MTA Posted April 20, 2017 Share Posted April 20, 2017 14 minutes ago, #_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 20, 2017 Share Posted April 20, 2017 12 minutes ago, Master_MTA said: تحقق باليفينت حق الخروج هل اللاعب مسجل ولا لا سويه انت Link to comment
Master_MTA Posted April 20, 2017 Share Posted April 20, 2017 addEventHandler ( "onPlayerQuit" , root , function ( ) if isGuestAccount(getPlayerAccount(source)) then return end setAccountData ( getPlayerAccount ( source ) , "aSaveMoney" , tonumber ( getPlayerMoney ( source ) ) ) end ) Link to comment
MA[S]RIY Posted April 20, 2017 Author Share Posted April 20, 2017 استفسار للعلم ليه حطيتو tonumber ؟ Link to comment
Master_MTA Posted April 20, 2017 Share Posted April 20, 2017 11 minutes ago, MARIY said: استفسار للعلم ليه حطيتو tonumber ؟ يحولها رقم اصلا مالها داعي لانها فلوس اللاعب اصلا مستحيل تجي سترنج لكن الاخ ايكو الله يهديه ما بتفرق هي اصلا Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 8 hours ago, MARIY said: السلام عليكم addEventHandler ( 'onPlayerLogout' getRootElement(), Function ( source ) pmoney = getPlayerMoney ( source ) setAccountData ( getPlayerAccount ( source ), "Data", pmoney) end ) addEventHandler ( 'onPlayerLogin', getRootElement ( ), Function () local money = getAccountData ( getPlayerAccount ( source ), "Data" ) setPlayerMoney ( source, money ) end ) الكود ذا وظيفته انو يحفظ فلوس الاعب علي الاكونت داتا ################## وش المشكله الي بالكود؟ الدي بق م يجيب اخطاء كتابة ال فنكشن عندك غلط, لازم سمول مب كبيتل, الخطأ : Function الصح :function Link to comment
MA[S]RIY Posted April 21, 2017 Author Share Posted April 21, 2017 5 hours ago, MR.StoRm said: كتابة ال فنكشن عندك غلط,لازم سمول مب كبيتل,الخطأ : Function الصح :function يعني كده صح ؟ addEventHandler ( 'onPlayerLogout' getRootElement(), function () pmoney = getPlayerMoney ( source ) setAccountData ( getPlayerAccount ( source ), "Data", pmoney) end ) addEventHandler ( 'onPlayerLogin', getRootElement ( ), function () local money = getAccountData ( getPlayerAccount ( source ), "Data" ) setPlayerMoney ( source, money ) end ) Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 1 minute ago, MARIY said: يعني كده صح ؟ addEventHandler ( 'onPlayerLogout' getRootElement(), function () pmoney = getPlayerMoney ( source ) setAccountData ( getPlayerAccount ( source ), "Data", pmoney) end ) addEventHandler ( 'onPlayerLogin', getRootElement ( ), function () local money = getAccountData ( getPlayerAccount ( source ), "Data" ) setPlayerMoney ( source, money ) end ) يب Link to comment
^iiEcoo'x_) Posted April 21, 2017 Share Posted April 21, 2017 37 minutes ago, MARIY said: يعني كده صح ؟ addEventHandler ( 'onPlayerLogout' getRootElement(), function () pmoney = getPlayerMoney ( source ) setAccountData ( getPlayerAccount ( source ), "Data", pmoney) end ) addEventHandler ( 'onPlayerLogin', getRootElement ( ), function () local money = getAccountData ( getPlayerAccount ( source ), "Data" ) setPlayerMoney ( source, money ) end ) ناقصك حدث onPlayerQuit Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 45 minutes ago, MARIY said: يعني كده صح ؟ addEventHandler ( 'onPlayerLogout' getRootElement(), function () pmoney = getPlayerMoney ( source ) setAccountData ( getPlayerAccount ( source ), "Data", pmoney) end ) addEventHandler ( 'onPlayerLogin', getRootElement ( ), function () local money = getAccountData ( getPlayerAccount ( source ), "Data" ) setPlayerMoney ( source, money ) end ) -_-" ما آنتبهت انت ناسي فاصلة بالسطر الأول خله كذا : addEventHandler ( 'onPlayerLogout', getRootElement(), function () pmoney = getPlayerMoney ( source ) setAccountData ( getPlayerAccount ( source ), "Data", pmoney) end ) addEventHandler ( 'onPlayerLogin', getRootElement ( ), function () local money = getAccountData ( getPlayerAccount ( source ), "Data" ) setPlayerMoney ( source, money ) end ) Link to comment
^iiEcoo'x_) Posted April 21, 2017 Share Posted April 21, 2017 28 minutes ago, MR.StoRm said: -_-"ما آنتبهت انت ناسي فاصلة بالسطر الأولخله كذا : addEventHandler ( 'onPlayerLogout', getRootElement(),function ()pmoney = getPlayerMoney ( source )setAccountData ( getPlayerAccount ( source ), "Data", pmoney)end)addEventHandler ( 'onPlayerLogin', getRootElement ( ),function ()local money = getAccountData ( getPlayerAccount ( source ), "Data" )setPlayerMoney ( source, money )end) كيف ناسي فاصلة ؟ لا تزود مشاركات الله ل يهينك Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 والله اطلع لـ فوق وشوف بعد onPlayerLogout, اطلع فوق وشوف , قبل لا تتكلم Link to comment
^iiEcoo'x_) Posted April 21, 2017 Share Posted April 21, 2017 1 minute ago, MR.StoRm said: والله اطلع لـ فوق وشوف بعد onPlayerLogout, اطلع فوق وشوف , قبل لا تتكلم لا تزود مشاركات ، هذا اللي اقولك عليه بس ، روح جربه وبعدين اتفلسف علي Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 1 hour ago, MARIY said: يعني كده صح ؟ addEventHandler ( 'onPlayerLogout' getRootElement(), function () pmoney = getPlayerMoney ( source ) setAccountData ( getPlayerAccount ( source ), "Data", pmoney) end ) addEventHandler ( 'onPlayerLogin', getRootElement ( ), function () local money = getAccountData ( getPlayerAccount ( source ), "Data" ) setPlayerMoney ( source, money ) end ) خذ شوف في بعد onPlayerLogout فاصلة ؟؟ لا تتفلسف انت الي تزود مشاركات , ! Link to comment
^iiEcoo'x_) Posted April 21, 2017 Share Posted April 21, 2017 1 minute ago, MR.StoRm said: خذ شوف في بعد onPlayerLogout فاصلة ؟؟ لا تتفلسفانت الي تزود مشاركات ,! خلص ماشي إنت شاطر ، إنت من كبار المبرمجين ، روح نام Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 1 minute ago, #_iMr.[E]coo said: خلص ماشي إنت شاطر ، إنت من كبار المبرمجين ، روح نام ههههههههههههههههه يالمقهور اكتشفت الغلط ما لقيت وش تتكلم , سكران وجاي يتكلم ! Link to comment
^iiEcoo'x_) Posted April 21, 2017 Share Posted April 21, 2017 Just now, MR.StoRm said: ههههههههههههههههه يالمقهور اكتشفت الغلط ما لقيت وش تتكلم , سكران وجاي يتكلم ! هههههههههههه ، روح جربه وبعدين تعال تفلسف علي ، افصل مكان للناس زيك هو مستشفى المجانين Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 (edited) أقولك شيء آطلع فوق واقرأ الموضوع وشوف الكود , آتكلم بآحترام مجرب الي انا معدله وجاي يتفلسف Edited April 21, 2017 by MR.StoRm Link to comment
Adham Posted April 21, 2017 Share Posted April 21, 2017 (edited) خلاص , استهدو بالله بالنسبه لكود الأخ مصري كود ايكو بيشتغل معك Edited April 21, 2017 by Deativated Link to comment
^iiEcoo'x_) Posted April 21, 2017 Share Posted April 21, 2017 2 hours ago, MR.StoRm said: أقولك شيء آطلع فوق واقرأ الموضوع وشوف الكود , آتكلم بآحترام مجرب الي انا معدله وجاي يتفلسف طيب جرب قبل ل تعدل وتفلسف براحتك Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 1 hour ago, #_iMr.[E]coo said: طيب جرب قبل ل تعدل وتفلسف براحتك ثواني انت تتكلم عن الكود حقك ؟ ! Link to comment
^iiEcoo'x_) Posted April 21, 2017 Share Posted April 21, 2017 19 minutes ago, MR.StoRm said: ثواني انت تتكلم عن الكود حقك ؟ ! كود مصري ، الله يعينا ع هذي الأشكال Link to comment
MR.StoRm Posted April 21, 2017 Share Posted April 21, 2017 يا @Deativated هنا مش الأخ مصري ناسي فاصلة ؟, 5 hours ago, MARIY said: يعني كده صح ؟ addEventHandler ( 'onPlayerLogout' getRootElement(), function () pmoney = getPlayerMoney ( source ) setAccountData ( getPlayerAccount ( source ), "Data", pmoney) end ) addEventHandler ( 'onPlayerLogin', getRootElement ( ), function () local money = getAccountData ( getPlayerAccount ( source ), "Data" ) setPlayerMoney ( source, money ) end ) بعد onPlayerLogout !? 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