error : undefined symbol "i"

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
  • Das hier
    for(new k = 0; k < MAX_PLAYERS; k++)
    {
    if(IsPlayerConnected(k))
    {
    if(gTeam[k] == 2 && CrimInRange(80.0, i,k))
    {
    }
    else
    {
    if(WantedPoints[i] < 0) { WantedPoints[i] = 0; }
    new points = WantedPoints[i];
    new wlevel;
    if(points > 0)
    {
    new yesno;
    if(points == 3) { if(WantedLevel[i] != 1) { WantedLevel[i] = 1; wlevel = 1; yesno = 1; } }
    else if(points >= 4 && points <= 5) { if(WantedLevel[i] != 2) { WantedLevel[i] = 2; wlevel = 2; yesno = 1; } }
    else if(points >= 6 && points <= 7) { if(WantedLevel[i] != 3) { WantedLevel[i] = 3; wlevel = 3; yesno = 1; } }
    else if(points >= 8 && points <= 9) { if(WantedLevel[i] != 4) { WantedLevel[i] = 4; wlevel = 4; yesno = 1; } }
    else if(points >= 10 && points <= 11) { if(WantedLevel[i] != 5) { WantedLevel[i] = 5; wlevel = 5; yesno = 1; } }
    else if(points >= 12 && points <= 13) { if(WantedLevel[i] != 6) { WantedLevel[i] = 6; wlevel = 6; yesno = 1; } }
    else if(points >= 14) { if(WantedLevel[i] != 10) { WantedLevel[i] = 10; wlevel = 10; yesno = 1; } }
    else if(points <= 0) { if(WantedLevel[i] != 0) { ClearCrime(i); WantedLevel[i] = 0; wlevel = 0; yesno = 1;} }
    if(yesno
    {
    format(string, sizeof(string), "Wanted: %d", wlevel);
    SendClientMessage(i, COLOR_YELLOW, string);

    muss darein=


    public Production()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pFishes] >= 5)
    {
    if(FishCount[i] >= 3)
    {
    PlayerInfo[i][pFishes] = 0;
    }
    else
    {
    FishCount[i] += 1;
    }
    }


    if(PlayerInfo[i][pPayDay] < 6) { PlayerInfo[i][pPayDay] += 1; } //+ 5 min to PayDay anti-abuse
    if(PlayerDrunk[i] > 0)
    {
    PlayerDrunk[i] = 0;
    PlayerDrunkTime[i] = 0;
    SetPlayerWeather(i,12);
    SetPlayerDrunkLevel (i, 0);


    GameTextForPlayer(i, "~p~Nicht mehr~n~~w~Betrunken", 3500, 1);


    }
    }
    }
    }


    Bei mir kommen immer 26 Errors...

    Diesen Account benutzen 2 Verschiedene.

    Einmal editiert, zuletzt von Time--inaktiv ()

  • public Production()
    {
    for(new k = 0; k < MAX_PLAYERS; k++)
    {
    if(IsPlayerConnected(k))
    {
    if(gTeam[k] == 2 && CrimInRange(80.0, i,k))
    {
    }
    else
    {
    if(WantedPoints[i] < 0) { WantedPoints[i] = 0; }
    new points = WantedPoints[i];
    new wlevel;
    if(points > 0)
    {
    new yesno;
    if(points == 3) { if(WantedLevel[i] != 1) { WantedLevel[i] = 1; wlevel = 1; yesno = 1; } }
    else if(points >= 4 && points <= 5) { if(WantedLevel[i] != 2) { WantedLevel[i] = 2; wlevel = 2; yesno = 1; } }
    else if(points >= 6 && points <= 7) { if(WantedLevel[i] != 3) { WantedLevel[i] = 3; wlevel = 3; yesno = 1; } }
    else if(points >= 8 && points <= 9) { if(WantedLevel[i] != 4) { WantedLevel[i] = 4; wlevel = 4; yesno = 1; } }
    else if(points >= 10 && points <= 11) { if(WantedLevel[i] != 5) { WantedLevel[i] = 5; wlevel = 5; yesno = 1; } }
    else if(points >= 12 && points <= 13) { if(WantedLevel[i] != 6) { WantedLevel[i] = 6; wlevel = 6; yesno = 1; } }
    else if(points >= 14) { if(WantedLevel[i] != 10) { WantedLevel[i] = 10; wlevel = 10; yesno = 1; } }
    else if(points <= 0) { if(WantedLevel[i] != 0) { ClearCrime(i); WantedLevel[i] = 0; wlevel = 0; yesno = 1;} }
    if(yesno
    {
    format(string, sizeof(string), "Wanted: %d", wlevel);
    SendClientMessage(i, COLOR_YELLOW, string);
    }
    }
    }
    }
    }



    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pFishes] >= 5)
    {
    if(FishCount[i] >= 3)
    {
    PlayerInfo[i][pFishes] = 0;
    }
    else
    {
    FishCount[i] += 1;
    }
    }


    if(PlayerInfo[i][pPayDay] < 6) { PlayerInfo[i][pPayDay] += 1; } //+ 5 min to PayDay anti-abuse
    if(PlayerDrunk[i] > 0)
    {
    PlayerDrunk[i] = 0;
    PlayerDrunkTime[i] = 0;
    SetPlayerWeather(i,12);
    SetPlayerDrunkLevel (i, 0);


    GameTextForPlayer(i, "~p~Nicht mehr~n~~w~Betrunken", 3500, 1);


    }
    }
    }
    }


    ich glaub so müsste es gehen, ist zwar umständlich

  • [pwn](15387) : error 017: undefined symbol "i
    (15392) : error 017: undefined symbol "i
    (15393) : error 017: undefined symbol "i"
    (15398) : error 017: undefined symbol "i"
    (15398) : error 017: undefined symbol "i"
    15399) : error 017: undefined symbol "i"
    (15399) : error 017: undefined symbol "i"
    (15400) : error 017: undefined symbol "i"
    (15400) : error 017: undefined symbol "i"
    (15401) : error 017: undefined symbol "i"
    (15401) : error 017: undefined symbol "i"
    (15402) : error 017: undefined symbol "i"
    (15402) : error 017: undefined symbol "i"
    (15403) : error 017: undefined symbol "i"
    (15403) : error 017: undefined symbol "i"
    (15404) : error 017: undefined symbol "i"
    (15404) : error 017: undefined symbol "i"
    (15405) : error 017: undefined symbol "i"
    (15405) : error 017: undefined symbol "i"
    (15405) : error 017: undefined symbol "i"
    (15405) : fatal error 107: too many error messages on one line[/pwn]


    Wie fix ich die?!

    Diesen Account benutzen 2 Verschiedene.

    Einmal editiert, zuletzt von Time--inaktiv ()


  • Danke für deine Hilfe , ich glaube jetzt dies gefixt nur habe ich jetzt ein 2. problem


    (15408) : error 028: invalid subscript (not an array or too many subscripts): "yesno"
    (15409) : error 017: undefined symbol "string"
    (15409) : error 017: undefined symbol "string"
    (15409) : warning 217: loose indentation
    (15409) : error 029: invalid expression, assumed zero
    (15409) : fatal error 107: too many error messages on one line


    An der stelle
    if(IsPlayerConnected(k))
    {
    if(gTeam[k] == 2 && CrimInRange(80.0, i,k))
    {
    }
    else
    {
    if(WantedPoints[i] < 0) { WantedPoints[i] = 0; }
    new points = WantedPoints[i];
    new wlevel;
    if(points > 0)
    {
    new yesno;
    if(points == 3) { if(WantedLevel[i] != 1) { WantedLevel[i] = 1; wlevel = 1; yesno = 1; } }
    else if(points >= 4 && points <= 5) { if(WantedLevel[i] != 2) { WantedLevel[i] = 2; wlevel = 2; yesno = 1; } }
    else if(points >= 6 && points <= 7) { if(WantedLevel[i] != 3) { WantedLevel[i] = 3; wlevel = 3; yesno = 1; } }
    else if(points >= 8 && points <= 9) { if(WantedLevel[i] != 4) { WantedLevel[i] = 4; wlevel = 4; yesno = 1; } }
    else if(points >= 10 && points <= 11) { if(WantedLevel[i] != 5) { WantedLevel[i] = 5; wlevel = 5; yesno = 1; } }
    else if(points >= 12 && points <= 13) { if(WantedLevel[i] != 6) { WantedLevel[i] = 6; wlevel = 6; yesno = 1; } }
    else if(points >= 14) { if(WantedLevel[i] != 10) { WantedLevel[i] = 10; wlevel = 10; yesno = 1; } }
    else if(points <= 0) { if(WantedLevel[i] != 0) { ClearCrime(i); WantedLevel[i] = 0; wlevel = 0; yesno = 1;} }
    if(yesno
    {
    format(string, sizeof(string), "Wanted: %d", wlevel);
    SendClientMessage(i, COLOR_YELLOW, string);
    "15408"
    if(yesno
    genauer gesagt hier ist der error "15409"
    format(string, sizeof(string), "Wanted: %d", wlevel);


    //Edit
    könnte echt hilfe gebrauchen

    Diesen Account benutzen 2 Verschiedene.

    Einmal editiert, zuletzt von Time--inaktiv ()

  • Danke :)
    aber yesno lässt mich nich in ruhe


    (15415) : error 028: invalid subscript (not an array or too many subscripts): "yesno"
    (15413) : warning 204: symbol is assigned a value that is never used: "yesno"
    (15413 -- 15423) : error 010: invalid function or declaration
    (15413 -- 15425) : error 010: invalid function or declaration
    (15413 -- 15425) : fatal error 107: too many error messages on one line


    Zeilen:
    15413 - 15423
    (string is gefixt)

    else if(points <= 0) { if(WantedLevel[i] != 0) { ClearCrime(i); WantedLevel[i] = 0; wlevel = 0; yesno = 1;} }
    if(yesno
    {
    format(string, sizeof(string), "Wanted: %d", wlevel);
    SendClientMessage(i, COLOR_YELLOW, string);
    }
    }
    }
    }
    }
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))


    Push...

    Diesen Account benutzen 2 Verschiedene.

    Einmal editiert, zuletzt von Time--inaktiv ()

  • else if(points <= 0) { if(WantedLevel[i] != 0) { ClearCrime(i); WantedLevel[i] = 0; wlevel = 0; yesno = 1;} }
    if(yesno) // Die ) hat gefällt, sollte jetzt funken
    {
    format(string, sizeof(string), "Wanted: %d", wlevel);
    SendClientMessage(i, COLOR_YELLOW, string);
    }
    }
    }
    }
    }
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))