Drakath Posted August 7, 2014 Share Posted August 7, 2014 I'm using the bone_attach resource and I keep getting errors since MTA 1.4: WARNING: bone_attach\bone_attach_c.lua:79: Bad argument @ 'setElementPosition' [Expected number, got NaN] WARNING: bone_attach\bone_attach_c.lua:80: Bad argument @ 'setElementRotation' [Expected number, got NaN] I did this but it still gives me the errors. if tonumber(objx) and tonumber(objy) and tonumber(objz) and tonumber(offrx) and tonumber(offry) and tonumber(offrz) then setElementPosition(element,objx,objy,objz) setElementRotation(element,offrx,offry,offrz,"ZXY") end Link to comment
Castillo Posted August 7, 2014 Share Posted August 7, 2014 I also had this problem, then someone told me how to fix it, this is the code: if (not tonumber(tostring(objx)) or not tonumber(tostring(objy)) or not tonumber(tostring(objz))) then return end if (not tonumber(tostring(offrx)) or not tonumber(tostring(offry)) or not tonumber(tostring(offrz))) then return end Link to comment
Mr.ShariQ Posted August 7, 2014 Share Posted August 7, 2014 well well. We also having a problem like this. we updated server and this happend, like server is bugged or something. - everyone is muted, scripts arent working and I am depressed. http://i.imgur.com/SeN8UkA.jpg http://puu.sh/aH41B/3aeb5eb421.png http://i.imgur.com/UExvmyR.jpg Help please. Link to comment
Drakath Posted August 7, 2014 Author Share Posted August 7, 2014 Thanks, Solidsnake14 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