Vice City: Multiplayer

VC:MP Discussion => Bugs and Crashes => Support => Closed Bug Reports => Topic started by: rww on May 06, 2016, 11:29 AM

Title: [BUG] Random sphere color?
Post by: rww on May 06, 2016, 11:29 AM
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi68.tinypic.com%2F20ady6d.jpg&hash=db49848b47a766ad1187d48a7287d08e1fc793fa)

CreateCheckpoint(null,1,true,Vector(143.3,-1373.1,10.4),RGB(255,150,200),0.8); //1
CreateCheckpoint(null,1,true,Vector(139.2,-1370.7,13.2),RGB(255,150,200),0.8); //2
Title: Re: [BUG] Random sphere color?
Post by: Murdock on May 06, 2016, 12:10 PM
Spheres/checkpoints use ARGB, not RGB. Using RGB might lead to unexpected behaviour.
Try ARGB instead, for example:
CreateCheckpoint(null,1,true,Vector(143.3,-1373.1,10.4),ARGB(255,255,150,200),0.8); //1
CreateCheckpoint(null,1,true,Vector(139.2,-1370.7,13.2),ARGB(255,255,150,200),0.8); //2
Title: Re: [BUG] Random sphere color?
Post by: rww on May 06, 2016, 12:41 PM
Ok, now working ;)