mob/proc/text_box(var/text,var/x1,var/x2,var/y1,var/y2) |
Problem description:
Text.dm:14:error: ): expected }
Text.dm:5:error: location of top-most unmatched {
Line 5 is var/WIDTH
Line 14 is var/CHAR_X
I have no idea why its giving me this error, I'm not using a { or } anywhere, and I believe all my parenthesis are correct.
But try adding another parenthesis at the front of CHAR_X and CHAR_Y:
var/CHAR_X = ( ( ( (x2 - x1) * 32) - (edge_offset_x * 2) ) / WIDTH )var/CHAR_Y = ( ( ( (y2 - y1) * 32) - (edge_offset_y * 2) ) / HEIGHT )