Help me again -.-
#1

So i need to know how to aboid scripting like this:
Код:
	if(strcmp("/destroycity", cmdtext, true) == 0)
	{
	    new Random = random(402);
	    CreateExplosion(USAair[Random][0], USAair[Random][1], USAair[Random][2], 6, 10.0);
	    new Random2 = random(402);
	    CreateExplosion(USAair[Random2][0], USAair[Random2][1], USAair[Random2][2], 6, 10.0);
	}
Isn't there anyway to use, hmm.... "Random++;" or something? it would take hundreds lines to create all those random explosions over city.
Reply


Messages In This Thread
Help me again -.- - by sekol - 06.09.2010, 18:26
Re: Help me again -.- - by Claude - 06.09.2010, 18:33
Re: Help me again -.- - by sekol - 06.09.2010, 18:36
Re: Help me again -.- - by Mauzen - 06.09.2010, 18:37
Re: Help me again -.- - by sekol - 06.09.2010, 18:42
Re: Help me again -.- - by Mauzen - 06.09.2010, 18:44
Re: Help me again -.- - by sekol - 06.09.2010, 18:50

Forum Jump:


Users browsing this thread: 2 Guest(s)