joaosilva099 Posted October 5, 2014 Share Posted October 5, 2014 (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 October 6, 2014 by Guest Link to comment
tosfera Posted October 5, 2014 Share Posted October 5, 2014 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. 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