Beiträge von LeonMrBonnie

    Aufjedenfall bin ich stolz drauf! Ich guck jede Nacht nochmal auf mein Profil sehe dass ich keine Verwarnung hab und schlaf dann besser ein.

    if(bool:value == false)//Returns the amount of remaining teams
    return count;


    zu


    ]if(bool:value == false)//Returns the amount of remaining teams
    {
    return count;
    }


    und genauso mit


    if(bool:value == true && count == 1)
    return i;


    zu



    if(bool:value == true && count == 1)
    {
    return i;
    }


    [list=1][*]stock TeamsAlive(bool:value)
    [*]{
    [*] new i=0,count=0;
    [*] while(i<TEAMSIZE)
    [*] {
    [*] if(GetTeamCount(i) > 0)
    [*] {
    [*] count++;
    [*] }
    [*] i++;
    [*] }
    [*] if(bool:value == false)
    [*]{
    [*] return count;
    [*]}
    [*] if(bool:value == true && count == 1)
    [*]{
    [*]return i;
    [*]}
    [*]}
    [*]

    [/list]

    Danke @Kaliber :D habe es nicht 1:1 uebernommen weil ich es irgendwie nicht ganz verstanden habe :/
    Habe es daher als Denkanstoss genommen, hoffe mein Erzeugniss ist auch halbwegs effizient



    Jedoch meckert der Compiler dass TeamsAlive ein value returnen soll :D