/Leader problem

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

  • C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44203) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44203) : error 017: undefined symbol "tmp"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44208) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44214) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44220) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44226) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44232) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44238) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44244) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44250) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44256) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44262) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44268) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44274) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44280) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44286) : error 017: undefined symbol "giveplayerid"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44293) : warning 209: function "ocmd_leader" should return a value




    ocmd:leader(playerid,params[])
    {
    new sendername[MAX_PLAYER_NAME];
    new string[128];
    if(IsPlayerConnected(playerid))
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    giveplayerid = ReturnUser(tmp);
    {
    if(PlayerInfo[i][pLeader] == 1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, "%s, Fraktion: LSPD, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 2)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, " %s, Fraktion: FBI, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 3)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, "%s, Fraktion: LVPD, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 4)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, " %s, Fraktion: LSMD, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 5)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, " %s, Fraktion: LCM, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 6)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, " %s, Fraktion: Yakuza %s, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 9)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, " %s, Fraktion: News Reporter, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 12)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, " %s, Fraktion: Triaden, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 13)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, " %s, Fraktion: Grove Street, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 14)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, " %s, Fraktion: Ballas, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 16)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, " %s, Fraktion: L.S. Vagos, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 18)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, "%s, Fraktion: S.F. Rifa, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 23)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, "%s, Fraktion: Russen Mafia, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    if(PlayerInfo[i][pLeader] == 24)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, " %s, Fraktion: Ordnungsamt, Nummer: %d", sendername,PlayerInfo[giveplayerid][pPnumber]); //Hier
    SendClientMessage(playerid, COLOR_GOLD, string);
    }
    }
    }
    return 1;
    }
    }


  • C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44196) : warning 203: symbol is never used: "tmp"
    C:\Windows\Vss\German v1.1\German[Scripts]\German-Next-Era-Life---v2.5\German Next Era Life - v2.5\gamemodes\GNE.pwn(44196 -- 44293) : warning 209: function "ocmd_leader" should return a value


    Dankeschön 2 Erros hab ich trotzdem noch :(

  • Funktioniert Danke!!



    if(strcmp(cmdtext, "/mask", true) == 0)
    {
    if(IsPlayerInFrac(playerid,8))
    {
    if(Maske[playerid] == 1)
    {
    for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, 1);
    Maske[playerid] = 0;
    DeletePVar(playerid,"Zahl");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Du hast deine Maske abgenommen.");
    }
    else if(Maske[playerid] == 0)
    {
    for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, 0);
    Maske[playerid] = 1;
    new Zahl = random(30);
    SetPVarInt(playerid,"Zahl",Zahl);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Du hast deine Maske aufgesetzt.");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du kannst keine Maske aufsetzen!");
    }
    return 1;
    }



    Wie mache ich über den kopf den 3DTextLabel (Maskierter (Random Zahl)