Wieso Errors?

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
  • Hey,


    wieso bekomme ich diese Errors? oO


    Code:

    Inhalt anzeigen
    enum LSCspawn
    {
    Float:SpawnX,
    Float:SpawnY
    Float:SpawnZ, //ZEILE 108
    Float:SpawnA
    }
    new LSCS[2][LSCspawn] = {
    {884.5817,-1198.3049,16.9766,182.9503}, // LSC2 //ZEILE 112
    {311.7694,-1777.0259,4.6254,215.2502} // LSC2
    };

    Inhalt anzeigen

    Inhalt anzeigen
    public OnPlayerSpawn(playerid)
    {
    if(PlayerInfo[playerid][pSpawnLoc] == 3)
    {
    new rand = random(sizeof(LSCS));
    SetPlayerPos(playerid,LSCS[rand][SpawnX],LSCS[rand][SpawnY],LSCS[rand][SpawnZ],LSCS[rand][SpawnA]); //ZEILE 337
    return 1;
    }
    //.....


    Errors:

    Inhalt anzeigen
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(108) : error 001: expected token: "}", but found "-label-"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 227: more initiallers than enum fields
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 213: tag mismatch
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 227: more initiallers than enum fields
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 213: tag mismatch
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : error 018: initialization data exceeds declared size
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(337) : error 017: undefined symbol "SpawnZ"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    Inhalt anzeigen

    Inhalt anzeigen

    Inhalt anzeigen
    3 Errors.