PopandaulX
Active member
- Joined
- Jul 15, 2013
- Messages
- 189
- Reaction score
- 1
Hello. I'm trying to make a script that writes a text (someone's name, who has the mod) in his color from TAB, but it's not going well....
0B37: samp 16@ = get_player_color $PLAYER_ACTOR
008A: $DECIMAL = 16@ // (int)
0010: $DECIMAL *= -1
0084: $R = $DECIMAL // (int)
0014: $R /= 65536
0084: $Rcopy = $R // (int)
0010: $Rcopy *= 65536
0060: $DECIMAL -= $Rcopy // (int)
0084: $G = $DECIMAL // (int)
0014: $G /= 256
0084: $Gcopy = $G // (int)
0010: $Gcopy *= 256
0060: $DECIMAL -= $Gcopy // (int)
0084: $B = $DECIMAL // (int)
Could you tell me what's wrong, please?
P.S. I thinked that algorithm using http://www.mathsisfun.com/hexadecimal-d ... olors.html
0B37: samp 16@ = get_player_color $PLAYER_ACTOR
008A: $DECIMAL = 16@ // (int)
0010: $DECIMAL *= -1
0084: $R = $DECIMAL // (int)
0014: $R /= 65536
0084: $Rcopy = $R // (int)
0010: $Rcopy *= 65536
0060: $DECIMAL -= $Rcopy // (int)
0084: $G = $DECIMAL // (int)
0014: $G /= 256
0084: $Gcopy = $G // (int)
0010: $Gcopy *= 256
0060: $DECIMAL -= $Gcopy // (int)
0084: $B = $DECIMAL // (int)
Could you tell me what's wrong, please?
P.S. I thinked that algorithm using http://www.mathsisfun.com/hexadecimal-d ... olors.html