Random colors
#4

Quote:
Originally Posted by terrance
Посмотреть сообщение
Code from my gamemode =)

Код:
//nick colors
new Colors[511] = {
		0x000022FF, 0x000044FF, /* ... too much colors :D ... */
};

new randomIndex = random(999999) % sizeof(Colors);
SetPlayerColor(playerid, Colors[randomIndex]);
Stinged already gave the answer to his question, besides that, your code is not even optimized.
Reply


Messages In This Thread
Random colors - by Steel_ - 29.08.2014, 06:09
Re: Random colors - by Stinged - 29.08.2014, 06:39
Re: Random colors - by terrance - 29.08.2014, 06:40
Re: Random colors - by ThePhenix - 29.08.2014, 06:42
Re: Random colors - by terrance - 29.08.2014, 06:46
Re: Random colors - by Steel_ - 29.08.2014, 06:48
Re: Random colors - by RajatPawar - 29.08.2014, 11:04

Forum Jump:


Users browsing this thread: 1 Guest(s)