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.