I was experimenting with the following code to draw a quick line (for a gauge later on):
Code:
dclr;
dcolor c1;
dline linex,liney;
dexit;
vector2f center,256,256; // center as reference
vector2f linex,50,50; //line point one
vector2f liney,256,256; //line point 2
color c1,255,255,255; //White
And it compiles fine, but then the console SPAMS this error:
Code:
entities\gmod_wire_gpu\gpu_vm.lua:577: attempt to perform arithmetic on global 'vd' (a nil value)
Until I undo the screen. I tried out my existing program (which is essentially a complex radar screen) and it was fine (no lines, thin rects for lines). I am using the most latest SVN build as of 10/9/2008
Bookmarks