☠ RaZeR ☠ Posted August 14, 2015 Author Share Posted August 14, 2015 لما اضغط مره ثانيه مايفتح ابواب السياره ! Link to comment
☠ RaZeR ☠ Posted August 14, 2015 Author Share Posted August 14, 2015 مافي شي في الديبوق Link to comment
☠ RaZeR ☠ Posted August 14, 2015 Author Share Posted August 14, 2015 نفس الشي ! لما اقفل واضغط الزر مره ثانيه مايفتح الابواب Link to comment
☠ RaZeR ☠ Posted August 14, 2015 Author Share Posted August 14, 2015 جربته بعد التعديل ؟ يب جربته مافي شي طلع في الديبوق + نفس المشكلة اللي قلت لك عليها Link to comment
☠ RaZeR ☠ Posted August 14, 2015 Author Share Posted August 14, 2015 الحين ليه ذا مااشتغل : زر قفل وفتح الابواب حقت السياره addEventHandler('onClientGUIClick',root, function ( ) if ( source == doors ) then if ( getPedOccupiedVehicle(localPlayer) ) then if ( isVehicleLocked(getPedOccupiedVehicle(localPlayer)) ) then setVehicleLocked(getPedOccupiedVehicle(localPlayer),false) else setVehicleLocked(getPedOccupiedVehicle(localPlayer),true) end end end end ) Link to comment
The Killer Posted August 14, 2015 Share Posted August 14, 2015 addEventHandler ("onClientGUIClick", resourceRoot, function () local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLocked (veh, not isVehicleLocked (veh)) end end ) Link to comment
☠ RaZeR ☠ Posted August 14, 2015 Author Share Posted August 14, 2015 addEventHandler ("onClientGUIClick", resourceRoot, function () local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLocked (veh, not isVehicleLocked (veh)) end end ) لما اضغط الزر مره ثاني مايفتح الابواب addEventHandler ("onClientGUIClick", resourceRoot, function () if source == doors then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLocked (veh, not isVehicleLocked (veh)) end end end ) Link to comment
The Killer Posted August 14, 2015 Share Posted August 14, 2015 شغال الكود معي لازم تكون داخل السياره Link to comment
☠ RaZeR ☠ Posted August 14, 2015 Author Share Posted August 14, 2015 انا كنت داخل السياره بعدين ضغط الزر لغلق الابواب بعدين طلعت عشان اتااكد بعدين جيت اضغط على الزر عشان افتحها ماافتحت الابواب Link to comment
☠ RaZeR ☠ Posted August 14, 2015 Author Share Posted August 14, 2015 طيب هذي صح حقت انوار السياره ؟ addEventHandler ("onClientGUIClick", resourceRoot, function () if source == doors then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLightState (veh, not istVehicleLightState (veh)) end end end ) Link to comment
</Mr.Tn6eL> Posted August 14, 2015 Share Posted August 14, 2015 istVehicleLightState من وين جبته + ناقصك ارقمنت bool setVehicleLightState ( vehicle theVehicle, int light, int state ) Link to comment
☠ RaZeR ☠ Posted August 14, 2015 Author Share Posted August 14, 2015 (edited) حطيت الارقمنتات الناقصه addEventHandler ("onClientGUIClick", resourceRoot, function () if source == doors then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLightState(veh, 2, 1, not setVehicleLightState(veh)) end end end ) Edited August 15, 2015 by Guest Link to comment
Naif Posted August 15, 2015 Share Posted August 15, 2015 هو ماقال لك ان فيه ارقمنتات ناقصه في SetVehicleLocked قألك في setVehicleLightState Link to comment
☠ RaZeR ☠ Posted August 15, 2015 Author Share Posted August 15, 2015 تم التصحيح فوق :: Link to comment
☠ RaZeR ☠ Posted August 15, 2015 Author Share Posted August 15, 2015 ليه لما اكتب يعطيي مشكلة في المنتدى General Error SQL ERROR [ mysqli ] Incorrect string value: '\xD8 An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists. Link to comment
☠ RaZeR ☠ Posted August 15, 2015 Author Share Posted August 15, 2015 (edited) هلا شباب ,, المشكله انه لو قفلت الابواب وطلعت وجيت افتح الابواب ماتفتح الزر = doors = guiCreateButton(12, 127, 75, 50, "ابواب", false) addEventHandler ("onClientGUIClick", resourceRoot, function () if source == doors then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLocked (veh, not isVehicleLocked (veh)) end end end ) هذي تقفل وتشغل انوار السياره بس مااشتغلت الزر = lights = guiCreateButton(135, 127, 75, 50, "تشغيل\إيقاف انوار السياره", false) addEventHandler ("onClientGUIClick", resourceRoot, function () if source == lights then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLightState (veh, 2, 1, not setVehicleLightState(veh)) end end end ) Edited August 15, 2015 by Guest Link to comment
☠ RaZeR ☠ Posted August 15, 2015 Author Share Posted August 15, 2015 لا كنت مستعجل وكتبتها سريع عدلتها فوق :: تقدر تصلح لي الكودين اللي فوق ؟ كل مشكله للكود مكتوبه فوقه Link to comment
Naif Posted August 15, 2015 Share Posted August 15, 2015 بسوي لك الاكوآد وبرجبها .. وبرد لك خبر Link to comment
Naif Posted August 15, 2015 Share Posted August 15, 2015 يقفل السيأره ويفتحها لاكن لازم يكون دأخلها يعني لو طلع من الموتر ويرجع يفكه م ينفك ! Link to comment
☠ RaZeR ☠ Posted August 15, 2015 Author Share Posted August 15, 2015 طيب وانوار السياره هذي تقفل وتشغل انوار السياره بس مااشتغلت الزر = lights = guiCreateButton(135, 127, 75, 50, "تشغيل\إيقاف انوار السياره", false) addEventHandler ("onClientGUIClick", resourceRoot, function () if source == lights then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then setVehicleLightState (veh, 2, 1, not setVehicleLightState(veh)) end end end ) 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