#DRAGON!FIRE Posted September 20, 2014 Share Posted September 20, 2014 ما ادري المكشلة من ايش بالضبط لاكن جرب كذا .. : function Pedser(thePlayer, command,_, Peds,_, VehicleModels) if not ( Peds or not VehicleModels ) then return end if not ( tonumber ( Peds ) and tonumber ( VehicleModels ) ) then return outputChatBox ("Please follow the right command, example /lol 9 5", thePlayer, 255, 0, 0) end local x, y, z = getElementPosition (thePlayer) local x = x+5 Vehicle = createVehicle (VehicleModels,x ,y ,z) Pedss = createPed (Peds, 0, 0, 0) warpPedIntoVehicle (Pedss, Vehicle, 0) end addCommandHandler ( "lol", Pedser ) Link to comment
LiOneLMeSsIShoT Posted September 20, 2014 Author Share Posted September 20, 2014 ما ادري المكشلة من ايش بالضبطلاكن جرب كذا .. : function Pedser(thePlayer, command,_, Peds,_, VehicleModels) if not ( Peds or not VehicleModels ) then return end if not ( tonumber ( Peds ) and tonumber ( VehicleModels ) ) then return outputChatBox ("Please follow the right command, example /lol 9 5", thePlayer, 255, 0, 0) end local x, y, z = getElementPosition (thePlayer) local x = x+5 Vehicle = createVehicle (VehicleModels,x ,y ,z) Pedss = createPed (Peds, 0, 0, 0) warpPedIntoVehicle (Pedss, Vehicle, 0) end addCommandHandler ( "lol", Pedser ) نفس المشكلة Link to comment
#DRAGON!FIRE Posted September 20, 2014 Share Posted September 20, 2014 اي اخطاء بالديبوق ؟ Link to comment
LiOneLMeSsIShoT Posted September 20, 2014 Author Share Posted September 20, 2014 اي اخطاء بالديبوق ؟ ولا اى شئ....... Link to comment
AboShanab Posted September 20, 2014 Share Posted September 20, 2014 function Pedser(thePlayer, command,Peds, VehicleModels) if not ( Peds or not VehicleModels ) then return end if not ( tonumber ( Peds ) and tonumber ( VehicleModels ) ) then return outputChatBox ("Please follow the right command, example /lol 9 5", thePlayer, 255, 0, 0) end local x, y, z = getElementPosition (thePlayer) local x = x+5 Vehicle = createVehicle (VehicleModels,x ,y ,z) Pedss = createPed (Peds, 0, 0, 0) warpPedIntoVehicle (Pedss, Vehicle, 0) end addCommandHandler ( "lol", Pedser ) Link to comment
LiOneLMeSsIShoT Posted September 20, 2014 Author Share Posted September 20, 2014 function Pedser(thePlayer, command,Peds, VehicleModels) if not ( Peds or not VehicleModels ) then return end if not ( tonumber ( Peds ) and tonumber ( VehicleModels ) ) then return outputChatBox ("Please follow the right command, example /lol 9 5", thePlayer, 255, 0, 0) end local x, y, z = getElementPosition (thePlayer) local x = x+5 Vehicle = createVehicle (VehicleModels,x ,y ,z) Pedss = createPed (Peds, 0, 0, 0) warpPedIntoVehicle (Pedss, Vehicle, 0) end addCommandHandler ( "lol", Pedser ) اشتغل تمام...بس اظن الان _ الشرطة ما ليها فايدة؟! امتى يكون ليها فايدة؟ اه...وبردة اما مثلا اكتب id ped مش موجودة زى رقم 10100 يجيلى خطا فى warpPedIntoVehicle argument 1 got boolean.. لكن اما اكتب صح ما ييجى خطا...انا عاوز اتفادى الخطا دة..ازاى؟ Link to comment
#DRAGON!FIRE Posted September 20, 2014 Share Posted September 20, 2014 هذي تحققات ثانية .. الخطا هنا يجي لانه ما في رقم بيد اصلن وبالنسبة للخط هو فراغ لاكن صراحة ما ادري وش الخطا الكود صحيح Link to comment
LiOneLMeSsIShoT Posted September 20, 2014 Author Share Posted September 20, 2014 هذي تحققات ثانية .. الخطا هنا يجي لانه ما في رقم بيد اصلنوبالنسبة للخط هو فراغ لاكن صراحة ما ادري وش الخطا الكود صحيح انا كدة اتلخبطت ! !! !! يعنى ال _ ما ليها فايدة؟! كدة ما فى مسافات والكود شغاااااااال! .. Link to comment
#DRAGON!FIRE Posted September 20, 2014 Share Posted September 20, 2014 فائدتها المسافات يعني زي كذا مثلا create 54 22 فـ الـ _ تعبر عن مسافة او تخطي الارقمنت . Link to comment
LiOneLMeSsIShoT Posted September 20, 2014 Author Share Posted September 20, 2014 تمت الافادة! شكر خاص ل Za7f للمساعدة الطويلة والصبر معى وشكرا لكل من ساعد 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