Jump to content

مشكلة في فنكشن ,!


Recommended Posts

انا سويت فنكشن يسوي كول شيب

على اللاعب بس بائت بالفشل

  
getClosePlayer = function ( Player, SizeX , SizeY ) 
  
if Player and SizeX and SizeY then 
  
  if not tonumber(SizeX) then return outputDebugString("Bad Argument @2 'SizeX' ")  end 
  
   if not tonumber(SizeY) then return outputDebugString("Bad Argument @3 'SizeY' ")  end 
  
      if SizeX < 50 then return end 
  
     if SizeY < 50 then return end 
  
    Col = createColRectangle(SizeX,SizeY,50,50) 
  
   attachElements(Player,Col) 
  
  return Col 
  
   
  
 else 
  
return false 
  
 end 
  
  
  
end 
  

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...