taha201100 Posted October 5, 2015 Share Posted October 5, 2015 نفسي امرة اسوي كود يشتغل دايما يطلع فيه خطأ وش خطأ الكود ذا x = createMarker ( 414.29568,2532.70703,16.57752 ) function ss () local money = getPlayerMoney if (getElementModel ~= 1 ) and (money > 10000 ) then takePlayerMoney ( Player,(10000) ) givePedWeapon ( player, 38, 3000) end end addEventHandler( "onClientMarkerHit", x, ss ) Link to comment
' A F . Posted October 5, 2015 Share Posted October 5, 2015 -- # Client x = createMarker ( 414.29568,2532.70703,16.57752 ) addEventHandler('onClientMarkerHit',x, function (element) if ( element == getLocalPlayer ( ) ) then if ( getElementModel ( element ) ~= 1 ) then triggerServerEvent('onMarker',getLocalPlayer()) end end end ) -- # Server addEvent('onMarker',true) addEventHandler('onMarker',root, function ( ) if ( getPlayerMoney ( source ) > 10000 ) then takePlayerMoney ( source , 10000 ) giveWeapon ( source , 38 , 3000 ) end end) Link to comment
taha201100 Posted October 5, 2015 Author Share Posted October 5, 2015 وش الخطأ ؟؟ كل الاكواد كلنت ليه حطيت سيرفر؟ Link to comment
` Allawi Posted October 5, 2015 Share Posted October 5, 2015 xiProGamer الرجال يبي يتعلم صحح له بطريقته وبكوده عشان يعرف اخطاء حقه وما يخطئ مره ثانيه Link to comment
taha201100 Posted October 5, 2015 Author Share Posted October 5, 2015 xiProGamerالرجال يبي يتعلم صحح له بطريقته وبكوده عشان يعرف اخطاء حقه وما يخطئ مره ثانيه +1 Link to comment
' A F . Posted October 5, 2015 Share Posted October 5, 2015 اخطاء الكود حقه سطر 3 نآسي ( ) takePlayerMoney بالكلنت مافيه ارقمنت الاعب وانت مسوي (1000) يعني كود الـ takePlayerMoney يصير كذأ takePlayerMoney ( 1000 ) ^ بالكلنت .. Link to comment
taha201100 Posted October 5, 2015 Author Share Posted October 5, 2015 يقولي خطأ بسطر 4 if (getElementModel ~= 1 ) and (money > 10000 ) then الكود كامل كلنت x = createMarker ( 414.29568,2532.70703,16.57752 ) function ss () local money = (getPlayerMoney) if (getElementModel ~= 1 ) and (money > 10000 ) then takePlayerMoney (10000) givePedWeapon ( player, 38, 3000) end end addEventHandler( "onClientMarkerHit", x, ss ) قولوا لي بس وش الخطأ بسطر 4؟ Link to comment
` Allawi Posted October 5, 2015 Share Posted October 5, 2015 x = createMarker ( 414.29568,2532.70703,16.57752 ) function ss (player) local money = getPlayerMoney() if (getElementModel(player) ~= 1 ) and (money > 10000 ) then takePlayerMoney ( 10000) givePedWeapon ( player, 38, 3000) end end addEventHandler( "onClientMarkerHit", x, ss ) Link to comment
taha201100 Posted October 5, 2015 Author Share Posted October 5, 2015 خصم من فلوسي لكن ما اعطاني خلاط لازم احطه بالسيرفر؟ Link to comment
' A F . Posted October 5, 2015 Share Posted October 5, 2015 بس اتوقع رآح يسحب الفلوس وهميه Link to comment
' A F . Posted October 5, 2015 Share Posted October 5, 2015 -- # Client x = createMarker ( 414.29568,2532.70703,16.57752 ) addEventHandler('onClientMarkerHit',x, function (element) if ( element == getLocalPlayer ( ) ) then if ( getElementModel ( element ) ~= 1 ) then triggerServerEvent('onMarker',getLocalPlayer()) end end end ) -- # Server addEvent('onMarker',true) addEventHandler('onMarker',root, function ( ) if ( getPlayerMoney ( source ) > 10000 ) then takePlayerMoney ( source , 10000 ) giveWeapon ( source , 38 , 3000 ) end end) Link to comment
taha201100 Posted October 5, 2015 Author Share Posted October 5, 2015 وش وهمية ؟؟؟ ابي من فلوس الاعب ما فهمت قصدك Link to comment
` Allawi Posted October 5, 2015 Share Posted October 5, 2015 xiProGamer انت كذا دخلت الرجال في امور لسا بدري عليها عشان يفهمها بالنسبه لك يا taha201100 وظيفة الـ givePedWeapon هذي وظيفة تعطي ابجكت البيد فقط لذلك تحتاج الى ان تستخدم triggerServerEvent -- ترسل لـ السيرفر عشان وظيفة اعطاء السلاح سيرفر giveWeapon -- تعطي سلاح اللاعب الوظيفة سيرفر 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