joaosilva099 Posted October 5, 2014 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 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
tosfera Posted October 5, 2014 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. If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]
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