Jump to content

I need someones help!


Lukkaz

Recommended Posts

okay well the script works like this, the interiors of my server are logged into a mySQL db. They logged the interiorID, outside x ,y ,z interiorX, y, z and owner ect. However in the functions it will be linked to command handlers that get the interiorID that way.

ex:

  
addCommandHandler( "getinterior", 
function( thePlayer, ...) 
 end 
  

meaning it's used with the syntax of getinterior 4 and it will retrieve the id from the database ect. However with my code it is simply /knock no additional arguments to tell the function what the ID is. I tried comparing the characters position to the outsideX,Y,Z of the interiors with no luck.

Any suggestion on how I could get the interior ID of the door the player knocks at?

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