"root" doesn't exist, is called "sqrt"... but you shouldn't be getting any such error.
I'll look into it.
Ah, that was the problem, but you should be getting -1 and not a console error, anyways, I'll fix it tomorrow when I have time.
I do not know what the problem is with this exp chip i coded but the lines are validated and saved fine. The only problem is that when spawning it i get an error.
My exp code:
The error i receive:N@XyzCalc
I@GpsX GpsY GpsZ TarX TarY TarZ
O@Angle
Dist = deg(root((GpsY-TarY)^2+(GpsX-TarX)^2))
Angle = deg(atan(GpsZ-TarZ)/Dist)[/b]
If anyone know how to fix this or what i am doing wrong then please let me know asapentities/gmod_wire_expression/init.lua:241: attempt to perform arithmetic on local 'k' (a nil value)[/b]
Thank you all for reading.
"root" doesn't exist, is called "sqrt"... but you shouldn't be getting any such error.
I'll look into it.
Ah, that was the problem, but you should be getting -1 and not a console error, anyways, I'll fix it tomorrow when I have time.
Thank you very much mate, much appreciated."root" doesn't exist, is called "sqrt"... but you shouldn't be getting any such error.
I'll look into it.
Ah, that was the problem, but you should be getting -1 and not a console error, anyways, I'll fix it tomorrow when I have time.[/b]
Are you aware that often a wire laser error appears, It tends to happen when you lag out of switch back into game? It is something to do with view or world model. I do not have the error at the moment but when i next encounter it i will copy and paste it up here.
Thanks for the solution to my exp chip, i didn't really notice that i use root and not 'sqrt'. So thanks!![]()
I haven't made the wired laser and never looked at the code, so I do not know the cause for that and I do not know how made it either. Hopefully whoever made it will see this thread.
I haven't made the wired laser and never looked at the code, so I do not know the cause for that and I do not know how made it either. Hopefully whoever made it will see this thread.[/b]
Thanks mate, my expression chip works and everything now. Thank you a lot. As for this laser error i will post it here and then provide the link to this for whom made the laser add-on.
Error(s) with laser weapon...
Note: This happens when one or more person(s) have the laser weapon. When one person(s) has the laser weapon this error appears whilst joining a sever, lagging out, and the occasionally time when you give yourself the weapon also whilst someone has given their selves one too.
weapons/laserPointer/cl_init.lua:13: Tried to access a NULL Entity!
er/cl_init.lua:12: attempt to call method 'GetViewModel' (a nil value)[/b]
Thanks, Shane aka StealthAssassin
Bookmarks