array applyin
#2

pawn Код:
new rand1 = random(sizeof(randomcolors));
    new rand2 = random(sizeof(randomcolors));
    AddStaticVehicle(522,-769.0129,-1568.9924,130.6875,9.0024,randomcolors[rand1],randomcolors[rand2]);
Your array format also looks irregular to me. Quotation marks are used for strings, not values.

Код:
new randomcolors[][] =
{
	{0},
	{1},
	{2},
	{3},
	{4},
	{5},
	{6},
	{7},
	{8},
	{9},
	{10},
	{11},
	{12},
	{13},
	{14},
	{15},
	{16},
	{17},
	{18},
	{19},
	{20},
	{21},
	{22},
	{23},
	{24},
	{25},
	{26},
	{27},
	{28},
	{29},
	{30},
	{126}
};
Reply


Messages In This Thread
array applyin - by patchkinson - 30.11.2009, 23:30
Re: array applyin - by bigcomfycouch - 01.12.2009, 01:29
Re: array applyin - by patchkinson - 01.12.2009, 10:56
Re: array applyin - by patchkinson - 01.12.2009, 11:04
Re: array applyin - by -8oHd4N- - 01.12.2009, 11:36
Re: array applyin - by smeti - 01.12.2009, 11:55
Re: array applyin - by patchkinson - 01.12.2009, 12:01
Re: array applyin - by Daniel_Truk - 01.12.2009, 12:44
Re: array applyin - by miokie - 01.12.2009, 12:45
Re: array applyin - by patchkinson - 01.12.2009, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)