Posts: 155
Threads: 52
Joined: Apr 2009
Reputation:
0
How can i do the command: /ChangeColor [R] [G] [B] ?
thanks,=]
Posts: 155
Threads: 52
Joined: Apr 2009
Reputation:
0
Edit: Wait, so i do
new R = strval(tmp);
new G = strval(tmp);
new B = strval(tmp);
new Col = R + G + B; ?
Posts: 155
Threads: 52
Joined: Apr 2009
Reputation:
0
yes sorry, didn't noticed, well look at my edit ..
Edit: Wait, so i do
new R = strval(tmp);
new G = strval(tmp);
new B = strval(tmp);
new Col = R + G + B; ?
Posts: 155
Threads: 52
Joined: Apr 2009
Reputation:
0
wtf, i don't know so much about c++...
what the *= mean?
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
Not sure why you're talking about *= 16... And you don't just add the numbers together, you need to times them by powers of 256.
_________________________________________________
A *= 10
is the same as:
A = A * 10
_________________________________________________
You have to do the strval bit or whatever for yourself, but you need to have the numbers you want stored in the variables R G and B, before you do what I just did to them. If in doubt send the code.
_________________________________________________
Note, I just changed the code so that it would work.
Posts: 155
Threads: 52
Joined: Apr 2009
Reputation:
0
well, so i do this thing, what ever it is, and then i do
SetPlayerColor(playerid, Col);?