Again, an Error...it worked Perfect in 12, but on 13 it gives me that error:
[CODE][ERROR] lua/includes/modules/draw.lua:246: attempt to perform arithmetic on local 'w' (a nil value)[/CODE]
And that is the Code i used:
[CODE]draw.WordBox( 8, (x-100), 10, "Target: " .. tostring(trace.Entity), "Scoreboard", Color(50,50,75,100), Color(255,0,0,255) );[/CODE]
didnt find anything on the "Why your script is broken..." Doc, so where is my mistake here?
Thanks,
Johnnyaka
It's usually informative to [url=http://www.glua.me/bin/?path=/lua/includes/modules/draw.lua]look over the file in question[/url] and see where the error actually occurred. Although in this case the error gave the wrong line number, which wouldn't be the first time that's happened.
Looks like surface.GetTextSize is returning nil. Make sure the "Scoreboard" font still exists, because GM13 removed 90% of the old ones, and if it doesn't exist you'll need to recreate it.
There's an addon around here somewhere that recreates all of the GM12 fonts but I can't find it.
Yap, thank you
Changing the Font did fix it!
why did he remove all the Fonts...sense?
I also looked over the source draw.lua, but how you said, the line number was wrong
Solved, Thanks
[QUOTE=johnnyaka;38287676]why did he remove all the Fonts...sense?[/QUOTE]
There was probably a reason behind it, but I haven't read much on it and sometimes garry just does his own thing
¯\°_o/¯
Sorry, you need to Log In to post a reply to this thread.