01.04.2010, 12:03
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?
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.
Код:
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