BUILDIN(color2hex) { int color = script_getnum(st, 2); char *colorstring; sprintf(colorstring, "%06X", color); script_pushstrcopy(st, colorstring); return true; }