Random Vehicle Colors
#2

That's because you make the variable hold that ONE number (random of 126). It's only returning that one number. Try something like this:
pawn Код:
//top
forward RandomColor();
{
  new color = random(126);
  return color;
}
Remember to delete the RandomColor variable that you already have, aswell as the math in OnGameModeInit you already have.
Reply


Messages In This Thread
Random Vehicle Colors - by Abernethy - 28.06.2009, 04:34
Re: Random Vehicle Colors - by Grim_ - 28.06.2009, 04:38
Re: Random Vehicle Colors - by arnutisz - 28.06.2009, 04:39

Forum Jump:


Users browsing this thread: 1 Guest(s)