Jockie Posted July 12, 2010 Share Posted July 12, 2010 I don't know what's wrong with this script. There are some stats saved into the account data and I want that the player can see the stats by a showing a window when clicked on a vehicle. But the window doesn't work/show at all. Also, this script is on when playing Race, everytime after a travel screen, the mouse won't show anymore with M. http://mta.pastebin.com/dZZ6px05 Link to comment
50p Posted July 12, 2010 Share Posted July 12, 2010 1. You don't need player element for isCursorShowing in client-side script. 2. getElementType returns string or boolean value. What your if statement shows is that you try to check if the returned value is nil and it will never pass the check because: 1. there is no vehicle variable anywhere in the script. It should be "vehicle" not vehicle. 2. because you already checked if the clicked element isn't false or nil in the first statement. NOTE: You should check if the account is guest account before you get its data in server-side script because guest accounts aren't saved. Link to comment
Jockie Posted July 13, 2010 Author Share Posted July 13, 2010 Thanks! O,O' Only one thing, the race resouce problem, the window doesn't show anymore when the map changes. 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