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.


LinkBack URL
About LinkBacks




Reply With Quote



Bookmarks