Jump to content

مساعدة بالكود


Recommended Posts

ما ادري المكشلة من ايش بالضبط

لاكن جرب كذا .. :

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
ما ادري المكشلة من ايش بالضبط

لاكن جرب كذا .. :

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

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
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
هذي تحققات ثانية .. الخطا هنا يجي لانه ما في رقم بيد اصلن

وبالنسبة للخط هو فراغ لاكن صراحة ما ادري وش الخطا الكود صحيح

انا كدة اتلخبطت ! !! !!

يعنى ال _ ما ليها فايدة؟! كدة ما فى مسافات والكود شغاااااااال! ..

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...