Vehikel spawn

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
  • ich habe hier die lspd cars gespawnt
    new lspdcars[27];




    lspdcars[0]= CreateVehicle(596,1535.8518,-1671.9904,13.3828,180.7820,0,1); //lspdcar6
    lspdcars[1]= CreateVehicle(599,1570.5458,-1710.8022,6.0827,359.9176,0,1); // lspdranger1
    lspdcars[2]= CreateVehicle(599,1574.7103,-1711.4304,6.0794,0.9134,0,1); // lspdranger2
    lspdcars[3]= CreateVehicle(599,1578.5333,-1709.7465,6.0823,0.3060,0,1); // lspdranger3
    lspdcars[4]= CreateVehicle(599,1564.4396,-1710.2799,6.0828,1.7693,0,1); // lspdranger4
    lspdcars[5]= CreateVehicle(599,1558.8135,-1710.5840,6.0825,359.2068,0,1); // lspdranger5
    lspdcars[6]= CreateVehicle(427,1583.1327,-1710.6727,6.0226,358.8308,0,1); // enforcer1
    lspdcars[7]= CreateVehicle(427,1587.6494,-1710.4000,6.0225,0.3880,0,1); // enforcer2
    lspdcars[8]= CreateVehicle(427,1591.4154,-1710.2122,6.0227,0.0971,0,1); // enforcer3
    lspdcars[9]= CreateVehicle(427,1595.2128,-1710.3154,6.0224,0.9120,0,1); // enforcer4
    lspdcars[10]= CreateVehicle(596,1601.1962,-1704.5374,5.6103,89.1727,0,1); // lspdcar1
    lspdcars[11]= CreateVehicle(596,1601.1785,-1700.2144,5.6121,89.8794,0,1); // lspdcar2
    lspdcars[12]= CreateVehicle(596,1600.9147,-1696.2675,5.6118,89.3369,0,1); // lspdcar3
    lspdcars[13]= CreateVehicle(596,1601.1056,-1692.2570,5.6128,89.3320,0,1); // lspdcar4
    lspdcars[14]= CreateVehicle(596,1600.7366,-1687.9857,5.6117,90.0738,0,1); // lspdcar5
    lspdcars[15]= CreateVehicle(596,1601.2965,-1683.9536,5.6122,89.6064,0,1); // lspdcar5
    lspdcars[16]= CreateVehicle(560,1545.5172,-1684.6154,5.5963,89.6181,1,1); // lspdsultan1
    lspdcars[17]= CreateVehicle(560,1544.3540,-1680.5004,5.5960,89.8905,1,1); // lspdsultan1
    lspdcars[18]= CreateVehicle(560,1544.7509,-1676.5604,5.5962,91.9512,1,1); // lspdsultan3
    lspdcars[19]= CreateVehicle(601,1544.6340,-1662.9308,5.6493,55.4516,1,1); // swattank1
    lspdcars[20]= CreateVehicle(601,1545.8298,-1669.2692,5.6493,137.5759,1,1); // swattank2
    lspdcars[21]= CreateVehicle(490,1538.3889,-1645.0060,6.0194,179.2714,0,0); // fbiranger1
    lspdcars[22]= CreateVehicle(490,1534.9691,-1645.8276,6.0200,179.9092,0,0); // fbiranger2
    lspdcars[23]= CreateVehicle(490,1530.1000,-1645.1609,6.0178,180.5415,0,0); // fbiranger3
    lspdcars[24]= CreateVehicle(522,1587.2438,-1670.1035,5.4639,271.5073,0,1); // nrg1
    lspdcars[25]= CreateVehicle(522,1586.7214,-1673.3915,5.4522,266.4202,0,1); // nrg2
    lspdcars[26]= CreateVehicle(522,1587.0490,-1677.2299,5.4721,269.6526,0,1); // nrg3


    und als fehler kommt:
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(77) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(78) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(79) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(80) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(81) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(82) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(83) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(84) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(85) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(86) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(87) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(88) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(89) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(90) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(91) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(92) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(93) : warning 202: number of arguments does not match definition
    C:\Users\Marvin\Desktop\samp03e_svr_R2_win32\gamemodes\Roleplay.pwn(94) : warning 202: number of arguments does not match definition




    Und es werden nur die ungefähr halbe anzahl von den autos gespawnt

  • CreateVehicle(522,1587.0490,-1677.2299,5.4721,269.6526,0,1);


    Du musst hinten noch eine -1 für den Respawn schreiben, sprich so:


    CreateVehicle(522,1587.0490,-1677.2299,5.4721,269.6526,0,1,-1);


    mfg. :thumbup:

    ast2ufdyxkb1.png


    Leute, lernt scripten und versucht mal lieber etwas selber zu schreiben, als es aus einem GF zu kopieren. :S

  • GKNBond, wie war das nochmal mit dem "Wenn man keine Ahnung hat, ..."-Spruch? -_-


    Musst eine "beliebige" Zahl hinten als Parameter dranhaengen. Die steht fuer die Sekunden, wann das Fahrzeug neugespawnt werden soll.


    //Edit: Kaliber war schneller ;o
    -1 fuer unendlich lange.