BNDRadar buggt?

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
  • Guten Tag,


    bei mir buggt das BNDRadar..
    Füge es ein, bekomme 5 Error's..


    Hier die Zeile:


    Code
    BNDRadar[playerid] = 0;



    Errorcodes:


    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(1411) : error 020: invalid symbol name ""
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(5739) : error 029: invalid expression, assumed zero
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(5739) : warning 215: expression has no effect
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(5739) : error 001: expected token: ";", but found "]"
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(5739) : error 029: invalid expression, assumed zero
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(5739) : fatal error 107: too many error messages on one line



    Was kann das sein?


    MfG

  • Habe nun neue Error's..:


    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(8478) : warning 213: tag mismatch
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(12536) : warning 213: tag mismatch
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(31293) : warning 213: tag mismatch
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(55945) : error 017: undefined symbol "forplayerid"
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(55952) : error 017: undefined symbol "forplayerid"
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(55954) : error 017: undefined symbol "forplayerid"
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(55960) : error 055: start of function body without function header
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(55962) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

  • So hier:


    Code
    Line 1409: new BNDRadar[MAX_PLAYERS];


    Code
    Line 5737: RobTimer[playerid] = -1; AntiRobTimer[playerid] = 0; TeamRadar[playerid] = 0; BNDRadar[playerid] = 0; MullManOwned[playerid] = -1; ServerTutCP[playerid] = 0;


    Code
    Line 20577: self_mysql_get_field("BNDRadar", val); BNDRadar[playerid] = strval( val );


    Code
    Line 21050: format(var, sizeof(var), "`BNDRadar`='%d', ", BNDRadar[playerid]);	 strcat(endstring, var, sizeof(endstring));



    {
    if(BNDRadar[forplayerid] == 1)
    {
    for(new i = 0; i < sizeof(BNDSystemInfo); i++)
    {
    if(BNDSystemInfo[BNDActive] == 1)
    {
    new Team1 = BNDSystemInfo[BNDTeam1ID], Team2 = BNDSystemInfo[BNDTeam2ID];
    if((Team1 == PlayerInfo[playerid][pTeam] && Team2 == PlayerInfo[forplayerid][pTeam]) || (Team1 == PlayerInfo[forplayerid][pTeam] && Team2 == PlayerInfo[playerid][pTeam]))
    {
    SetPlayerMarkerForPlayer(forplayerid,playerid,0x00FF00FF);
    }
    }
    }
    }
    }

    ___________________________________



    ocmd:bndradar(playerid, params[])
    {
    if(PlayerInfo[playerid][pTeam] == -1) return SendClientMessage(playerid, COLOR_ERRORTEXT, "Du bist in keiner Gang!");
    if(IsACop(playerid)) return SendClientMessage(playerid, COLOR_ERRORTEXT, " Nicht für Cops möglich, Ihr seht euch schon auf dem Radar !");
    if(BNDRadar[playerid] == 1) { BNDRadar[playerid] = 0; SendClientMessage(playerid, COLOR_YELLOW, "Mitglieder deiner Bündnissen von der MiniMap entfernt!"); }
    else
    {
    for(new i = 0; i < sizeof(BNDSystemInfo); i++)
    {
    if(BNDSystemInfo[BNDActive] == 1)
    {
    for(new p; p<MAX_PLAYERS; p++)
    {
    new Team1 = BNDSystemInfo[BNDTeam1ID], Team2 = BNDSystemInfo[BNDTeam2ID];
    if((Team1 == PlayerInfo[playerid][pTeam] && Team2 == PlayerInfo[p][pTeam]) || (Team1 == PlayerInfo[p][pTeam] && Team2 == PlayerInfo[playerid][pTeam]))
    {
    SetPlayerMarkerForPlayer(playerid,p,0x00FF00FF);
    }
    }
    }
    }
    BNDRadar[playerid] = 1;
    SendClientMessage(playerid, COLOR_YELLOW, "Du siehst nun deine Bündnisse auf dem Radar !");
    }
    return 1;
    }


    ________________________________


    Die Errors:



    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(8478) : warning 213: tag mismatch
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(12536) : warning 213: tag mismatch
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(31294) : warning 213: tag mismatch
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(55946) : error 017: undefined symbol "forplayerid"
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(55953) : error 017: undefined symbol "forplayerid"
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(55955) : error 017: undefined symbol "forplayerid"
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(55961) : error 055: start of function body without function header
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(55963) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.

    3 Mal editiert, zuletzt von [ERP]Stewie ()

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Woher bekommst du denn "forplayerid"?
    Zeig mal die Zeilen:
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(8478) : warning 213: tag mismatch
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(12536) : warning 213: tag mismatch
    C:\Users\Thomas\Desktop\Jana\LsR Server\gamemodes\LifeofRoleplay.pwn(31293) : warning 213: tag mismatch