Jump to content

SOLVED


Recommended Posts

Posted (edited)

Hi all I have this script to locate player ingame.

It should draw dx text with the located player location info, the orientation and the meters. draws too an arrow above the player who is locating pointing to the located one.

The problem is that the arrow doesnt get drawn pointing to the right direction!

DS3:

-Bad argument getElementType. Element Expected ar arg 1 got nil

-Attempt to compare number with string.

Hope you can help me. Thanks

PROBLEM SOLVED CAN DELETE THIS THANKS

Edited by Guest

350x20_FFFFFF_FFFFFF_000000_000000.png

http://i.imgur.com/CSE28MJ.png

Don't hesitate to contact me for anything! If I can help, I will for sure!

Education is the most powerful weapon which you can use to change the world. - Castillo

Posted

You are using this line without defining 'ply'

if(getElementType(ply) == "player") then 

an easy fix is to add 'ply = ply' in your 'loc' function, make sure to reset it too. just like the tox and toy.

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

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