Error bei Checkpoint Liste?

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
  • Moin Leute.
    Habe nen komischen error: error 055: start of function body without function header
    hier mal die zeilen:
    enum Checkpoint
    {
    Float:X,
    Float:Y,
    Float:Z,
    Float:R // Radius
    }
    new CPInfo[MAX_PLAYERS][Checkpoint];
    {
    {1280.9387,-1799.3966,13.3849,3.0},//1.
    {1796.2412,-2168.8850,13.3828,276,3.0},//2.
    {1963.9427,-2053.8076,13.4550,3.0},//3.
    {1824.7738,-1830.5153,13.4141,3.0},//4.
    {1404.1343,-1869.7872,13.3828,3.0},//5.
    {1280.9387,-1799.3966,13.3849,3.0},//6.
    }
    new CheckpointCount[MAX_PLAYERS]; // Speichert lediglich die Checkpointnummer jedes Spielers
    Hier mal alle Errors & warnings
    K:\SA-MP\Pawno&Scripts\Scripts\Selfmadeluca.pwn(65) : error 055: start of function body without function header
    K:\SA-MP\Pawno&Scripts\Scripts\Selfmadeluca.pwn(1295) : warning 203: symbol is never used: "CPInfo"
    K:\SA-MP\Pawno&Scripts\Scripts\Selfmadeluca.pwn(1295) : warning 203: symbol is never used: "CheckpointCount"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

  • so kommt das
    new CPInfo[MAX_PLAYERS][Checkpoint];
    {
    {1280.9387,-1799.3966,13.3849,3.0},//1.
    {1796.2412,-2168.8850,13.3828,276,3.0},//2.
    {1963.9427,-2053.8076,13.4550,3.0},//3.
    {1824.7738,-1830.5153,13.4141,3.0},//4.
    {1404.1343,-1869.7872,13.3828,3.0},//5.
    {1280.9387,-1799.3966,13.3849,3.0}//6. Am letzten Punkt kein , machen
    };//da haste das ; vergessen


    das Never used is das du die Funktion nicht verwendest

    All in all it's just another brick in the wall

  • klappt immer noch nicht.
    Hier die Fehler:
    K:\SA-MP\Pawno&Scripts\Scripts\Selfmadeluca.pwn(65) : error 055: start of function body without function header
    K:\SA-MP\Pawno&Scripts\Scripts\Selfmadeluca.pwn(72) : error 010: invalid function or declaration
    K:\SA-MP\Pawno&Scripts\Scripts\Selfmadeluca.pwn(1294) : warning 203: symbol is never used: "CPInfo"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.

  • kk:
    enum Checkpoint
    {
    Float:X,
    Float:Y,
    Float:Z,
    Float:R // Radius
    }
    new CPInfo[MAX_PLAYERS][Checkpoint];
    {
    {1280.9387,-1799.3966,13.3849,3.0},//1.
    {1796.2412,-2168.8850,13.3828,276,3.0},//2.
    {1963.9427,-2053.8076,13.4550,3.0},//3.
    {1824.7738,-1830.5153,13.4141,3.0},//4.
    {1404.1343,-1869.7872,13.3828,3.0},//5.
    {1280.9387,-1799.3966,13.3849,3.0}//6.
    };

  • nop...
    K:\SA-MP\Pawno&Scripts\Scripts\Selfmadeluca.pwn(65) : error 055: start of function body without function header
    K:\SA-MP\Pawno&Scripts\Scripts\Selfmadeluca.pwn(72) : error 010: invalid function or declaration
    K:\SA-MP\Pawno&Scripts\Scripts\Selfmadeluca.pwn(1294) : warning 203: symbol is never used: "CPInfo"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.

  • man guten Morgen


    new CPInfo[MAX_PLAYERS][Checkpoint]=//statt ; ein =
    {
    {1280.9387,-1799.3966,13.3849,3.0},//1.
    {1796.2412,-2168.8850,13.3828,3.0},//2.
    {1963.9427,-2053.8076,13.4550,3.0},//3.
    {1824.7738,-1830.5153,13.4141,3.0},//4.
    {1404.1343,-1869.7872,13.3828,3.0},//5.
    {1280.9387,-1799.3966,13.3849,3.0}//6.
    };

    All in all it's just another brick in the wall

  • Jetzt wieder ein Fehler:
    K:\SA-MP\Pawno&Scripts\Scripts\Selfmadeluca.pwn(72) : error 052: multi-dimensional arrays must be fully initialized
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    Hier die Zeilen:
    enum Checkpoint
    {
    Float:X,
    Float:Y,
    Float:Z,
    Float:R // Radius
    }
    new CPInfo[MAX_PLAYERS][Checkpoint]=
    {
    {1280.9387,-1799.3966,13.3849,3.0},//1.
    {1796.2412,-2168.8850,13.3828,3.0},//2.
    {1963.9427,-2053.8076,13.4550,3.0},//3.
    {1824.7738,-1830.5153,13.4141,3.0},//4.
    {1404.1343,-1869.7872,13.3828,3.0},//5.
    {1280.9387,-1799.3966,13.3849,3.0}//6.
    };
    new CheckpointCount[MAX_PLAYERS];
    Sry, bin heute etw. verwirrt...

  • Neuer Fehler...
    K:\SA-MP\Pawno&Scripts\Scripts\Selfmadeluca.pwn(639) : error 033: array must be indexed (variable "CheckpointCount")
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    Hier die Zeilen:
    public OnPlayerEnterCheckpoint(playerid)
    {
    if(CheckpointCount[playerid]!=0)
    {
    DisablePlayerCheckpoint(playerid);
    CheckpointCount[playerid]++;
    SetPlayerCheckpoint(playerid,CPInfo[CheckpointCount][X],CPInfo[CheckpointCount][Y],CPInfo[CheckpointCount][Z],CPInfo[CheckpointCount][R]);
    }
    }
    Muss ich da vlt. ne for Schleife machen?