10.03.2010, 14:04
Quote:
new RandomVehicle = random(400,401,402,404,410,412,413,418,419); AddStaticVehicle(RandomVehicle,2205.2,-1177.0,25.7,270.8,-1,-1); // a car please help me ... thanks.. |
new RandomVehicle = random(400,401,402,404,410,412,413,418,419); AddStaticVehicle(RandomVehicle,2205.2,-1177.0,25.7,270.8,-1,-1); // a car please help me ... thanks.. |
new randomcar [9][1] = {
{400},
{401},
{402},
{404},
{410},
{412},
{413},
{418},
{419}
}
new rand = random(sizeof(randomcar));
AddStaticVehicle(randomcar[rand][0],2205.2,-1177.0,25.7,270.8,-1,-1);
(8461) : error 001: expected token: ";", but found "new" |
new randomcar [51][1] = { {400},{401},{402}, {404},{410},{412},{413},{418},{419},{422},{426},{4 39},{440},{458},{461}, {462},{463},{466},{467},{468},{471},{474},{475},{4 78},{479},{489},{492}, {496},{507},{509},{510},{516},{517},{521},{526},{5 27},{529},{533},{542}, {543},{549},{554},{562},{566},{567},{575},{581},{5 86},{600},{604},{605} }; new rand = random(sizeof(randomcar)); //PART 1 AddStaticVehicle(randomcar[rand][0],645.8277,-1772.6516,12.0704,346.0127,0,0); // |
new randomcar[51] = { 400,401,402,404..... };
(8532) : warning 204: symbol is assigned a value that is never used: "randomcar" |
new randomcar;
Originally Posted by FujiNNN
Quote:
|
new
RandomVehicle[] = { 400, 401, 402, 404, 410, 412, 413, 418, 419 };
AddStaticVehicle(RandomVehicle[random(sizeof RandomVehicle)], 2205.2, -1177.0, 25.7, 270.8, -1, -1); // car
AddStaticVehicle(RandomVehicle[random(sizeof RandomVehicle)], 2215.2, -1177.0, 25.7, 270.8, -1, -1); // car
AddStaticVehicle(RandomVehicle[random(sizeof RandomVehicle)], 2225.2, -1177.0, 25.7, 270.8, -1, -1); // car