spoty Posted May 9, 2016 Share Posted May 9, 2016 ive got this error code attempt to perform arithmetic on a userdate value the error is from this line local total = 0 + getRootElement ( source, "Total Drift", true ) its for drft resource i have maded a db to save the drift points but as you can see local total = 0 let the points start counting from 0 and when i join its perfect but start to drift it just starts to recount from 0 so thats why i use the getRootElement Link to comment
denny199 Posted May 10, 2016 Share Posted May 10, 2016 Didn't you mean? getElementData Link to comment
KariiiM Posted May 10, 2016 Share Posted May 10, 2016 the error is from this line local total = 0 + getRootElement ( source, "Total Drift", true ) It's not the right usage of getRootElement(), this function returns the root element (players, vehicles, peds, resources...etc) and also this function doesn't require any arguments. often, you mean "getElementData" as denny199 said 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