This goes to work?
#1

Hi, im doing a public for my gm of racing, of in every race the player goes to have 1/901 to get an object, this goes to work?

Код:
new RandStart = random(901);
  if(IsPlayerConnected(playerid))
  {
  		switch(RandStart)
    {
		  	case 0:
		  	{
		  	  AddItem(playerid,"Maximos_Embargos",1);
		  	  return 1;
		  	}
		  	case 1..900:
		  	{
		  	return 1;
		  	}
		}
	}
return 1
because when i compile if i put the random 900 or less don't give me a warning, and when i put more of 900 don't give me a warning.
Reply


Messages In This Thread
This goes to work? - by Sergio_team - 01.04.2010, 12:03
Re: This goes to work? - by [cA]Unforseen - 01.04.2010, 12:13
Re: This goes to work? - by RSX - 01.04.2010, 12:16
Re: This goes to work? - by Sergio_team - 01.04.2010, 12:19

Forum Jump:


Users browsing this thread: 2 Guest(s)