Hilfe mit Velox Buildmenu

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
  • Hi,
    ich habe ein Problem!
    Ich habe eine Velox Racinggamemode und will ins buildmenu das Menu wo man Im Game mit dem Command /buildmode on eigene Rennen erstellen kann mehrere Autos und Flugzeuge einfügen. Bei mir funzt es aber nicht. Ich weiß net genau wie und wo. Hier einmal der Script:

    print("Tuh irgendwas im erstell Menü");
    switch (xRaceBuilding[playerid])
    {


    case 1:
    {
    switch (row)
    {
    case 0: xWorldTime[playerid] = 0;
    case 1: xWorldTime[playerid] = 3;
    case 2: xWorldTime[playerid] = 6;
    case 3: xWorldTime[playerid] = 9;
    case 4: xWorldTime[playerid] = 12;
    case 5: xWorldTime[playerid] = 15;
    case 6: xWorldTime[playerid] = 18;
    case 7: xWorldTime[playerid] = 21;
    }
    }
    case 2:
    {
    switch (row)
    {
    case 0: xWeatherID[playerid] = 0;
    case 1: xWeatherID[playerid] = 10;
    case 2: xWeatherID[playerid] = 12;
    case 3: xWeatherID[playerid] = 16;
    case 4: xWeatherID[playerid] = 16;
    case 5: xWeatherID[playerid] = 19;
    }
    }
    case 3:
    {
    switch (row)
    {
    case 0: xTrackTime[playerid] = 60;
    case 1: xTrackTime[playerid] = 120;
    case 2: xTrackTime[playerid] = 180;
    case 3: xTrackTime[playerid] = 240;
    case 4: xTrackTime[playerid] = 300;
    case 5: xTrackTime[playerid] = 360;
    case 6: xTrackTime[playerid] = 480;
    case 7: xTrackTime[playerid] = 600;
    case 8: xTrackTime[playerid] = 900;
    }
    }


    case 4:
    {
    switch (row)
    {
    case 0: xRaceType[playerid] = 1;
    case 1: xRaceType[playerid] = 2;
    }
    }
    case 5:
    {
    switch (row)
    {
    case 0: xCarIds[playerid][0] = 451;
    case 1: xCarIds[playerid][0] = 565;
    case 2: xCarIds[playerid][0] = 429;
    case 3: xCarIds[playerid][0] = 415;
    case 4: xCarIds[playerid][0] = 558;
    case 5: xCarIds[playerid][0] = 522;
    case 6: xCarIds[playerid][0] = 468;
    case 7: xCarIds[playerid][0] = 513;
    case 8: xCarIds[playerid][0] = 457;
    case 9: xCarIds[playerid][0] = 400;
    case 10: xCarIds[playerid][0] = 403;
    case 11: xCarIds[playerid][0] = 406;
    case 12: xCarIds[playerid][0] = 407;
    case 13: xCarIds[playerid][0] = 409;
    case 14: xCarIds[playerid][0] = 414;
    case 15: xCarIds[playerid][0] = 416;
    case 16: xCarIds[playerid][0] = 417;
    case 17: xCarIds[playerid][0] = 423;
    case 18: xCarIds[playerid][0] = 427;
    case 19: xCarIds[playerid][0] = 430;
    case 20: xCarIds[playerid][0] = 431;
    case 21: xCarIds[playerid][0] = 432;
    case 22: xCarIds[playerid][0] = 400, print("More..");


    }
    if (xCarIds[playerid][0] > 0)
    {
    SetPlayerVirtualWorld(playerid, playerid+100);
    printf("playerVirtual: %d world:%d",playerid, playerid+100);
    newCar(playerid);


    }
    }
    }


    So was ist hier falsch? Ab buildmenu 5 sollen mehrere Autos hinzugewfügt werden (siehe case 5,case9,id 400)


    Ab Autoid 400 sollen diese Autos hinzugefügt werden! Das habe ich dann auch so gemacht:


    createBuildMenus()
    {


    buildMenu[0] = CreateMenu("Welt Zeit",1, 200.0, 125.0, 220.0, 50.0);
    SetMenuColumnHeader(buildMenu[0], 0, "[Waehle die Zeit]");
    AddMenuItem(buildMenu[0],0,"[0:00]");
    AddMenuItem(buildMenu[0],0,"[3:00]");
    AddMenuItem(buildMenu[0],0,"[6:00]");
    AddMenuItem(buildMenu[0],0,"[9:00]");
    AddMenuItem(buildMenu[0],0,"[12:00]");
    AddMenuItem(buildMenu[0],0,"[15:00]");
    AddMenuItem(buildMenu[0],0,"[18:00]");
    AddMenuItem(buildMenu[0],0,"[21:00]");


    buildMenu[1] = CreateMenu("Wetter",1, 200.0, 125.0, 220.0, 50.0);
    SetMenuColumnHeader(buildMenu[1], 0, "[Waehle das Wetter]");
    AddMenuItem(buildMenu[1],0,"[Normal]");
    AddMenuItem(buildMenu[1],0,"[Sonnig]");
    AddMenuItem(buildMenu[1],0,"[Grau]");
    AddMenuItem(buildMenu[1],0,"[Regnerisch]");
    AddMenuItem(buildMenu[1],0,"[Sturm]");
    AddMenuItem(buildMenu[1],0,"[Windig]");


    buildMenu[2] = CreateMenu("TrackTime",1, 200.0, 125.0, 220.0, 50.0);
    SetMenuColumnHeader(buildMenu[2], 0, "[Waehle die Strecken Zeit]");
    AddMenuItem(buildMenu[2],0,"1 [minute]");
    AddMenuItem(buildMenu[2],0,"2 [minuten]");
    AddMenuItem(buildMenu[2],0,"3 [minuten]");
    AddMenuItem(buildMenu[2],0,"4 [minuten]");
    AddMenuItem(buildMenu[2],0,"5 [minuten]");
    AddMenuItem(buildMenu[2],0,"6 [minuten]");
    AddMenuItem(buildMenu[2],0,"8 [minuten]");
    AddMenuItem(buildMenu[2],0,"10 [minuten]");
    AddMenuItem(buildMenu[2],0,"15 [minuten]");


    buildMenu[3] = CreateMenu("RaceArt",1, 200.0, 125.0, 220.0, 50.0);
    SetMenuColumnHeader(buildMenu[3], 0, "[Waehle die Art des Rennens]");
    AddMenuItem(buildMenu[3],0,"[Normal]");
    AddMenuItem(buildMenu[3],0,"[Fliegen]");


    buildMenu[4] = CreateMenu("Fahrzeug",1, 200.0, 125.0, 220.0, 50.0);
    SetMenuColumnHeader(buildMenu[4], 0, "[Waehle ein Fahrzeug]");
    AddMenuItem(buildMenu[4],0,"[Turismo]");
    AddMenuItem(buildMenu[4],0,"[Flash]");
    AddMenuItem(buildMenu[4],0,"[Banshee]");
    AddMenuItem(buildMenu[4],0,"[Cheetah]");
    AddMenuItem(buildMenu[4],0,"[Uranus]");
    AddMenuItem(buildMenu[4],0,"[NRG 500]");
    AddMenuItem(buildMenu[4],0,"[Sanchez]");
    AddMenuItem(buildMenu[4],0,"[Stunt Plane]");
    AddMenuItem(buildMenu[4],0,"[Caddy]");
    AddMenuItem(buildMenu[4],0,"[Mehr...]");


    buildMenu[5] = CreateMenu("Fahrzeuge2",1, 200.0, 125.0, 220.0, 50.0);
    SetMenuColumnHeader(buildMenu[5], 0, "[Waehle ein Fahrzeug]");
    AddMenuItem(buildMenu[5],0,"[Sultan]");
    AddMenuItem(buildMenu[5],0,"[SuperGT]");
    AddMenuItem(buildMenu[5],0,"[Savanna]");
    AddMenuItem(buildMenu[5],0,"[BF Injection]");
    AddMenuItem(buildMenu[5],0,"[Monster]");
    AddMenuItem(buildMenu[5],0,"[Bullet]");
    AddMenuItem(buildMenu[5],0,"[Hotring]");
    AddMenuItem(buildMenu[5],0,"[Kart]");
    AddMenuItem(buildMenu[5],0,"[Hydra]");//520
    AddMenuItem(buildMenu[5],0,"[Landstalker]");
    AddMenuItem(buildMenu[5],0,"[Linerunner]");
    AddMenuItem(buildMenu[5],0,"[Dumper]");
    AddMenuItem(buildMenu[5],0,"[Firetruck]");
    AddMenuItem(buildMenu[5],0,"[Stretch]");
    AddMenuItem(buildMenu[5],0,"[Mule]");
    AddMenuItem(buildMenu[5],0,"[Ambulance]");
    AddMenuItem(buildMenu[5],0,"[Leviathan]");
    AddMenuItem(buildMenu[5],0,"[Mr Whoopee]");
    AddMenuItem(buildMenu[5],0,"[Enforcer]");
    AddMenuItem(buildMenu[5],0,"[Predator]");
    AddMenuItem(buildMenu[5],0,"[Bus]");
    AddMenuItem(buildMenu[5],0,"[Rhino]");
    AddMenuItem(buildMenu[5],0,"[Mehr...]");


    So, das habe ich gemacht, aber wenn ich imgame /buildmode on eingebe funzt es nicht! Die neuen Autos werden nicht angezeigt! Woran kann es liegen?


    Meine ICQ Nr. 369-263-543


    MFG Maggi ;)

    Einmal editiert, zuletzt von Goldkiller ()