Guten Tag,
nach ein paar Monaten melde ich mich auch mal wieder in der Breadfish Community
Da ich gerade ein Skript schreibe welches beim Starten eines Rennens, 20 Autos an Verschiedenen Positionen spwnet, wollte ich diese in einen Array
abspeichern.
RaceMap1_Cars = {
CreateVehicle(451,1865.6999512,-2966.5000000,55.0000000,272.0000000,37,37,15),
CreateVehicle(451,1865.5999756,-2974.0000000,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1875.9000244,-2973.6999512,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1876.0000000,-2966.1999512,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1870.6999512,-2970.1000977,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1882.1999512,-2970.0000000,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1887.8000488,-2965.8999023,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1888.5999756,-2974.1000977,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1899.0999756,-2973.6999512,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1893.1999512,-2970.3000488,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1898.6999512,-2966.0000000,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1905.4000244,-2970.3999023,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1911.6999512,-2966.1000977,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1912.0999756,-2973.8000488,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1918.8000488,-2970.1999512,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1926.0000000,-2966.1000977,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1926.0999756,-2974.1000977,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1933.3000488,-2970.3000488,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1940.3000488,-2973.8000488,55.0000000,271.9995117,37,37,15),
CreateVehicle(451,1940.3000488,-2966.3000488,55.0000000,271.9995117,37,37,15)
};
Jedoch krieg ich bei dieder Methode den Fehler:
C:\Programme(x86)\Rockstar Games\Gta San andreas\gamemodes\BloXx.pwn(1165 -- 1166) : error 008: must be a constant expression; assumed zero
Mir ist bewusst, dass die Autos beim definieren sofort gespawnt werden.
Könnt inr mir vllt weiter helfen?
lg timtrucker