Finde den Fehler nicht - Tag Mismatch

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 hoffe ihr könnt mir helfen. Ich finde einfach den Fehler nicht ...


    new Float:boonetdis = GetVehicleBootDistance(GetPlayerNearestVehicle(playerid));


    stock GetVehicleBootDistance(vehicle)
    {
    new Float:distance;
    switch(vehicle)
    {
    case 400: distance = 2.90;
    case 401: distance = 3.08;
    case 402: distance = 3.24;
    case 404: distance = 3.26;
    case 405: distance = 3.34;
    case 409: distance = 4.39;
    case 410: distance = 2.77;
    case 411: distance = 2.91;
    case 412: distance = 3.99;
    case 413: distance = 3.15;
    case 415: distance = 2.90;
    case 418: distance = 3.18;
    case 419: distance = 3.46;
    case 420: distance = 3.29;
    case 421: distance = 3.55;
    case 426: distance = 3.30;
    case 429: distance = 2.95;
    case 434: distance = 2.49;
    case 436: distance = 3.11;
    case 438: distance = 3.26;
    case 439: distance = 2.99;
    case 442: distance = 3.66;
    case 445: distance = 3.30;
    case 451: distance = 3.06;
    case 458: distance = 3.42;
    case 466: distance = 3.35;
    case 467: distance = 3.55;
    case 474: distance = 3.38;
    case 475: distance = 3.25;
    case 477: distance = 3.20;
    case 479: distance = 3.43;
    case 480: distance = 2.98;
    case 483: distance = 3.44;
    case 489: distance = 3.16;
    case 490: distance = 3.76;
    case 491: distance = 3.50;
    case 492: distance = 3.44;
    case 495: distance = 2.80;
    case 496: distance = 2.66;
    case 504: distance = 3.40;
    case 505: distance = 3.16;
    case 506: distance = 2.87;
    case 507: distance = 3.36;
    case 516: distance = 3.46;
    case 517: distance = 3.42;
    case 518: distance = 3.33;
    case 526: distance = 2.94;
    case 527: distance = 2.89;
    case 529: distance = 3.20;
    case 533: distance = 3.02;
    case 534: distance = 3.44;
    case 536: distance = 3.51;
    case 540: distance = 3.40;
    case 541: distance = 2.70;
    case 542: distance = 3.49;
    case 545: distance = 2.76;
    case 546: distance = 3.19;
    case 547: distance = 3.25;
    case 549: distance = 3.02;
    case 550: distance = 3.26;
    case 551: distance = 3.66;
    case 555: distance = 2.86;
    case 558: distance = 2.91;
    case 559: distance = 2.76;
    case 560: distance = 2.88;
    case 561: distance = 3.23;
    case 562: distance = 2.82;
    case 565: distance = 2.61;
    case 566: distance = 3.52;
    case 567: distance = 3.67;
    case 575: distance = 3.27;
    case 576: distance = 3.57;
    case 579: distance = 3.46;
    case 580: distance = 3.24;
    case 585: distance = 3.55;
    case 589: distance = 2.83;
    case 596: distance = 3.30;
    case 597: distance = 3.31;
    case 598: distance = 3.26;
    case 599: distance = 3.18;
    case 600: distance = 3.24;
    case 602: distance = 3.08;
    case 603: distance = 3.15;
    case 604: distance = 3.44;
    case 605: distance = 3.15;

    }
    return distance; // In dieser Zeile ist der Fehler //
    }


    Ich habe vor das distance auch schon Float: geschrieben, dies hat aber auch nichts genützt.
    Hoffentlich könnt ihr mir helfen.