viewing paste Unknown #19542 | C

Posted on the
1 2 3 4 5 6 7 8 9 10
BUILDIN(setcolor){
    int color = script_getnum(st, 2);
    char colorstring[7];
 
    snprintf(colorstring, 7, "%06X", color);
 
    script_pushstrcopy(st, colorstring);
    pc_setglobalreg(sd,script->add_str("CHAT_COLOR"),colorstring);
    return true;
}
Viewed 601 times, submitted by Guest.