Kann mir wer hier ein Timer ein bauen das die Auros nach 2sek spawnen ich weiß nicht wo der hinsoll.
Hilfe beim Timer einbauen
- Chry
- Geschlossen
- Erledigt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
mach hinten bei den Codes vom Auto das hin
,2000 -
Geht nicht die 20000 war absicht.
{"Stallion",0,439,-1,750000,5000,783.0,-1335.0,13.2,121.1,20000},
{"Feltzer",0,533,-1,500000,3000,783.0,-1340.0,13.2,121.1,20000},
{"Windsor",0,555,-1,450000,3400,783.0,-1345.0,13.2,121.1,20000},
{"Blade",0,536,-1,350000,3000,783.0,-1350.0,13.2,121.1,20000},
{"Remington",0,534,-1,500000,3000,783.0,-1355.0,13.2,121.1,20000},
{"Savanna",0,567,-1,350000,3000,783.0,-1360.0,13.2,121.1,20000},
{"Slamvan",0,535,-1,500000,3000,783.0,-1365.0,13.2,121.1,20000},
{"Voodoo",0,412,-1,500000,3000,783.0,-1370.0,13.2,121.1,20000},
{"Huntley",0,579,-1,200000,1000,783.0,-1375.0,13.2,121.1,20000},
{"Buccaneer",0,518,-1,120000,1000,783.0,-1380.0,13.2,121.1,20000},
{"Clover",0,542,-1,35000,500,765.0,-1360.0,13.4,301.1,20000},
{"Elegant",0,507,-1,40000,650,765.0,-1365.0,13.4,301.1,20000},
{"Elegy",0,562,-1,1500000,10000,765.0,-1370.0,13.4,301.1,20000},
{"Esperanto",0,419,-1,65000,650,765.0,-1375.0,13.4,301.1,20000},
{"Fortune",0,526,-1,35000,500,765.0,-1380.0,13.4,301.1,20000},
{"Sultan",0,560,-1,1500000,10000,766.0,-1333.0,13.3,211.1,20000},
{"Sunrise",0,550,-1,300000,2000,761.0,-1333.0,13.3,211.1,20000},
{"Vincent",0,540,-1,280000,2000,756.0,-1333.0,13.3,211.1,20000},
{"Alpha",0,602,-1,230000,2000,751.0,-1333.0,13.3,211.1,20000},
{"Banshee",0,429,-1,1000000,5500,746.0,-1333.0,13.3,211.1,20000},
{"Blista Compact",1,496,-1,350000,2500,-1668.6447,1207.0372,7.0249,309.5959,20000},
{"Buffalo",1,402,-1,500000,3000,-1663.6709,1215.2883,7.0234,274.9868,20000},
{"Bullet",1,541,-1,7500000,17500,-1651.3892,1210.3469,7.0208,281.3321},
{"Cheetah",1,415,-1,4000000,10000,-1677.3560,1207.8099,13.4461,208.2602,20000},
{"Club",1,589,-1,70000,750,-1665.7789,1222.4406,13.4485,279.6459,20000},
{"Euros",1,587,-1,650000,7000,-1660.7256,1217.6407,13.4444,283.1553,20000},
{"Infernus",1,411,-1,1500000,7000,-1653.2462,1210.7842,13.4460,266.7211,20000},
{"Jester",1,559,-1,1500000,10000,-1676.0128,1207.1641,20.9248,261.5029,20000},
{"Phoenix",1,603,-1,600000,4000,-1664.4386,1206.8241,20.9289,332.5978,20000},
{"Super GT",1,506,-1,12500000,20000,-1651.6372,1208.2538,20.9231,305.1015,20000},
{"Turismo",1,451,-1,13000000,20000,-1665.1248,1222.7113,20.9265,267.4103,20000},
{"Uranus",1,558,-1,850000,10000,-1661.1943,1217.9629,20.9268,286.1662,20000},
{"ZR-350",1,477,-1,6500000,7000,-1654.3116,1214.8097,20.9267,173.5712,20000},
{"Faggio",0,462,-1,10000,500,750.7272,-1358.3872,13.0996,273.7736,20000}Fehler :
C:\Dokumente und Einstellungen\Vaio\Desktop\Filterscripts\auto.pwn(106) : warning 227: more initiallers than enum fields
C:\Dokumente und Einstellungen\Vaio\Desktop\Filterscripts\auto.pwn(106) : error 018: initialization data exceeds declared size
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase1 Error.
-
Zeig mal die Enum Klasse dazu
-
enum ahCar
{
Typ,
Float:X,
Float:Y,
Float:Z,
Float:Rotation,
Status,
Lock,
Carid,
Paintjob,
Color1,
Color2,
mod1,
mod2,
mod3,
mod4,
mod5,
mod6,
mod7,
mod8,
mod9,
mod10,
mod11,
mod12,
mod13,
mod14,
mod15,
mod16,
mod17,
};
new Carlist[MAX_PLAYERS][ahCar];enum ahSpawn
{
Float:X,
Float:Y,
Float:Z,
Float:Rotation,
};
new Carspawns[2][ahSpawn] = {
{739.7457,-1343.8668,13.2828,270.2592},
{-1639.3599,1198.1665,6.9527,269.9673}
};enum ahModel
{
Name[128],
Autohaus,
Modelid,
Carid,
Price,
Repair,
Float:X,
Float:Y,
Float:Z,
Float:Rotation,
};
new Buylist[34][ahModel] = {
{"Stallion",0,439,-1,750000,5000,783.0,-1335.0,13.2,121.1,20000},
{"Feltzer",0,533,-1,500000,3000,783.0,-1340.0,13.2,121.1,20000},
{"Windsor",0,555,-1,450000,3400,783.0,-1345.0,13.2,121.1,20000},
{"Blade",0,536,-1,350000,3000,783.0,-1350.0,13.2,121.1,20000},
{"Remington",0,534,-1,500000,3000,783.0,-1355.0,13.2,121.1,20000},
{"Savanna",0,567,-1,350000,3000,783.0,-1360.0,13.2,121.1,20000},
{"Slamvan",0,535,-1,500000,3000,783.0,-1365.0,13.2,121.1,20000},
{"Voodoo",0,412,-1,500000,3000,783.0,-1370.0,13.2,121.1,20000},
{"Huntley",0,579,-1,200000,1000,783.0,-1375.0,13.2,121.1,20000},
{"Buccaneer",0,518,-1,120000,1000,783.0,-1380.0,13.2,121.1,20000},
{"Clover",0,542,-1,35000,500,765.0,-1360.0,13.4,301.1,20000},
{"Elegant",0,507,-1,40000,650,765.0,-1365.0,13.4,301.1,20000},
{"Elegy",0,562,-1,1500000,10000,765.0,-1370.0,13.4,301.1,20000},
{"Esperanto",0,419,-1,65000,650,765.0,-1375.0,13.4,301.1,20000},
{"Fortune",0,526,-1,35000,500,765.0,-1380.0,13.4,301.1,20000},
{"Sultan",0,560,-1,1500000,10000,766.0,-1333.0,13.3,211.1,20000},
{"Sunrise",0,550,-1,300000,2000,761.0,-1333.0,13.3,211.1,20000},
{"Vincent",0,540,-1,280000,2000,756.0,-1333.0,13.3,211.1,20000},
{"Alpha",0,602,-1,230000,2000,751.0,-1333.0,13.3,211.1,20000},
{"Banshee",0,429,-1,1000000,5500,746.0,-1333.0,13.3,211.1,20000},
{"Blista Compact",1,496,-1,350000,2500,-1668.6447,1207.0372,7.0249,309.5959,20000},
{"Buffalo",1,402,-1,500000,3000,-1663.6709,1215.2883,7.0234,274.9868,20000},
{"Bullet",1,541,-1,7500000,17500,-1651.3892,1210.3469,7.0208,281.3321},
{"Cheetah",1,415,-1,4000000,10000,-1677.3560,1207.8099,13.4461,208.2602,20000},
{"Club",1,589,-1,70000,750,-1665.7789,1222.4406,13.4485,279.6459,20000},
{"Euros",1,587,-1,650000,7000,-1660.7256,1217.6407,13.4444,283.1553,20000},
{"Infernus",1,411,-1,1500000,7000,-1653.2462,1210.7842,13.4460,266.7211,20000},
{"Jester",1,559,-1,1500000,10000,-1676.0128,1207.1641,20.9248,261.5029,20000},
{"Phoenix",1,603,-1,600000,4000,-1664.4386,1206.8241,20.9289,332.5978,20000},
{"Super GT",1,506,-1,12500000,20000,-1651.6372,1208.2538,20.9231,305.1015,20000},
{"Turismo",1,451,-1,13000000,20000,-1665.1248,1222.7113,20.9265,267.4103,20000},
{"Uranus",1,558,-1,850000,10000,-1661.1943,1217.9629,20.9268,286.1662,20000},
{"ZR-350",1,477,-1,6500000,7000,-1654.3116,1214.8097,20.9267,173.5712,20000},
{"Faggio",0,462,-1,10000,500,750.7272,-1358.3872,13.0996,273.7736,20000}
}; -
Hättest nicht alle posten müssen , new buylist genügt schon.
Bei enum ahModel muss doch noch Respawntime rein oder so ? -
enum ahModel
{
Name[128],
Autohaus,
Modelid,
Carid,
Price,
Repair,
Float:X,
Float:Y,
Float:Z,
Float:Rotation,
respawn_time,
};Eine neue Integer Variable , damit verändert sich die Struktur und man kann einen Wert hinzufügen,
wenn du Weitere Typen hinzufügen bzw. Werte hinzufügen möchtest kannst du in die enum liste
eine neue variable mit einem Typ eintragen z.b.Float:neue_koordinate
Du solltest dir unbedingt mal Arrays bzw. zu Deutsch Reihenfolgen anschauen
-
Ok dann bedanke ich mich mal.
-
breadfish.de
Hat das Thema geschlossen.