Hilfe habe mein Gamemode geschrottet

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
  • hallo hier einmal die errors
    (1393) : warning 213: tag mismatch
    (1399) : warning 213: tag mismatch
    (1399) : error 032: array index out of bounds (variable "PlayerInfo")
    (1402) : warning 213: tag mismatch
    (1402) : warning 213: tag mismatch
    (1528) : warning 213: tag mismatch
    (1528) : error 032: array index out of bounds (variable "PlayerInfo")
    (1548) : warning 213: tag mismatch
    (1548) : error 032: array index out of bounds (variable "PlayerInfo")
    (1568) : warning 213: tag mismatch
    (1568) : error 032: array index out of bounds (variable "PlayerInfo")
    (1588) : warning 213: tag mismatch
    (1588) : error 032: array index out of bounds (variable "PlayerInfo")
    (1650) : error 017: undefined symbol "pPassword"
    (1652) : error 017: undefined symbol "pPassword"
    (1659) : warning 213: tag mismatch
    (1660) : warning 213: tag mismatch
    (1660) : error 032: array index out of bounds (variable "PlayerInfo")
    (1661) : warning 213: tag mismatch
    (1662) : warning 213: tag mismatch
    (1662) : error 032: array index out of bounds (variable "PlayerInfo")
    (1663) : warning 213: tag mismatch
    (1668) : warning 213: tag mismatch
    (1668) : error 032: array index out of bounds (variable "PlayerInfo")
    (1845) : error 017: undefined symbol "pPassword"
    (1848) : warning 213: tag mismatch
    (1849) : warning 213: tag mismatch
    (1850) : warning 213: tag mismatch
    (1850) : error 032: array index out of bounds (variable "PlayerInfo")
    (1851) : warning 213: tag mismatch
    (1884) : warning 213: tag mismatch
    (1884) : error 032: array index out of bounds (variable "PlayerInfo")
    (1885) : warning 213: tag mismatch
    (2029) : warning 203: symbol is never used: "Player"
    alle zeilen sind zuviel am besten ihr sagt mir welche zeile ihr habe wolt und dann oste ich
    enum spieler_daten
    {
    Float:lastx,Float:lasty,Float:lastz,
    eingeloggt
    }
    enum pInfo
    {
    AdminLevel,
    pKills,
    pCash,
    pPasswort [256],
    pLeader,
    score,
    pDeaths,
    Float:lastx,Float:lasty,Float:lastz,
    }
    new Player[pInfo];
    new PlayerInfo[MAX_PLAYERS][spieler_daten];
    MfG
    Kiddy_Noobtuber


  • enum spieler_daten
    {
    Float:lastx,Float:lasty,Float:lastz,
    eingeloggt,
    }
    enum pInfo
    {
    AdminLevel,
    pKills,
    pCash,
    pPasswort [256],
    pLeader,
    score,
    pDeaths,
    Float:lastx,Float:lasty,Float:lastz,
    }
    new Player[pInfo];
    new PlayerInfo[MAX_PLAYERS][spieler_daten];


    und wozu noch die pInfo wenn du spieler_daten hast

    RFT

  • dann habe ich noch 13 fehler
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1393) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1399) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1399) : error 032: array index out of bounds (variable "PlayerInfo")
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1402) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1402) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1528) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1528) : error 032: array index out of bounds (variable "PlayerInfo")
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1548) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1548) : error 032: array index out of bounds (variable "PlayerInfo")
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1568) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1568) : error 032: array index out of bounds (variable "PlayerInfo")
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1588) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1588) : error 032: array index out of bounds (variable "PlayerInfo")
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1650) : error 017: undefined symbol "pPassword"
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1652) : error 017: undefined symbol "pPassword"
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1659) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1660) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1660) : error 032: array index out of bounds (variable "PlayerInfo")
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1661) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1662) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1662) : error 032: array index out of bounds (variable "PlayerInfo")
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1663) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1668) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1668) : error 032: array index out of bounds (variable "PlayerInfo")
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1845) : error 017: undefined symbol "pPassword"
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1848) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1849) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1850) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1850) : error 032: array index out of bounds (variable "PlayerInfo")
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1851) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1884) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1884) : error 032: array index out of bounds (variable "PlayerInfo")
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1885) : warning 213: tag mismatch
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(2029) : warning 203: symbol is never used: "Player"

  • ne habe jetzt nuzr 3 errors die ich net weg kriege
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1406) : warning 215: expression has no effect
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1655) : error 017: undefined symbol "pPassword"
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1657) : error 017: undefined symbol "pPassword"
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1850) : error 017: undefined symbol "pPassword"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.
    zeile 1650-1660
    key = ini_GetKey(Data);


    if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
    if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
    if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
    if( strcmp( key , "Score" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][score] = strval( val ); }
    GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
    }
    fclose(UserFile);
    gPlayerLogged[playerid] = 1;
    gPlayerAccount[playerid] = 1;
    new kills = PlayerInfo[playerid][score];

    Einmal editiert, zuletzt von Kiddy_Noobtuber ()

  • pPasswort [256],



    Zitat

    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1655) : error 017: undefined symbol "pPassword"
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1657) : error 017: undefined symbol "pPassword"
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1850) : error 017: undefined symbol "pPassword"


    DU erstellst die Variable pPasswort und später frägst du 3x pPassword ab. Falsch geschrieben. Der erste Error kann man so nicht sagen, musst die Zeile 1406 hier posten und auch noch bissle drum rum.

  • und noch die zeile 1399 - 1412
    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    1859- 1840
    PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
    format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
    format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
    format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
    fclose(hFile);
    }
    }
    }
    return 1;
    }



    stock ini_GetKey( line[] )
    {
    new keyRes[128];
    keyRes[0] = 0;
    if ( strfind( line , "=" , true ) == -1 ) return keyRes;
    strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) );
    return keyRes;
    }

  • C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1393) : warning 215: expression has no effect
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1638) : error 017: undefined symbol "pPassword"
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1640) : error 017: undefined symbol "pPassword"
    C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1833) : error 017: undefined symbol "pPassword"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.noch 3 errors 1 warning ach diue erros sind weg

  • C:\Program Files (x86)\Rockstar Games\server\gamemodes\testii22.pwn(1393) : warning 215: expression has no effect
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.
    noch den warning
    public OnPlayerDeath(playerid, killerid, reason)
    {
    new kills = PlayerInfo[playerid][pKills];
    SetPlayerScore(playerid, kills);
    PlayerInfo[playerid][pDeaths] += 1;
    GivePlayerMoney(killerid,1000);
    PlayerInfo[killerid][pKills] + 1;
    TextDrawHideForPlayer(playerid,txtTimeDisp);
    return 1;
    }

    sollte da drin sein

  • Sieht man auch so ;D