Fraktionsautohaus

In 10 Minuten startet der nächtliche Backupvorgang! Es kann währenddessen (ca. 10 Minuten) zu Einschränkungen bei der Nutzung des Forums kommen
Weitere Infos findet ihr im Thema Backup des Forums
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 Com,


    da bei meinem Fraktionsautohaus jede Fraktion sich alles selber kaufen muss


    habe ich alles fertig, nur ich will noch machen das sich Automatisch ein Kennzeichen ran setzt und sich das Speichert.


    Hier ist mein Code:


    stock GetDefaultCarColorOfFaction(Faction,&col1,&col2){
    if(Faction==1)
    {
    col1 = 125;
    col2 = 1;
    }
    else if(Faction==2)
    {
    col1 = 0;
    col2 = 0;
    }
    else if(Faction==3)
    {
    col1 = 102;
    col2 = 1;
    }
    else if(Faction==4)
    {
    col1 = 3;
    col2 = 6;
    }
    else if(Faction==5)
    {
    col1 = 0;
    col2 = 0;
    }
    else if(Faction==6)
    {
    col1 = 15;
    col2 = 15;
    }
    else if(Faction==7)
    {
    col1 = 61;
    col2 = 61;
    }
    else if(Faction==8)
    {
    col1 = 0;
    col2 = 0;
    }
    else if(Faction==9)
    {
    col1 = 1;
    col2 = 1;
    }
    else if(Faction==10)
    {
    col1 = 6;
    col2 = 6;
    }
    else if(Faction==11)
    {
    col1 = 1;
    col2 = 1;
    }
    else if(Faction==12)
    {
    col1 = 13;
    col2 = 13;
    }
    else if(Faction==13)
    {
    col1 = 86;
    col2 = 86;
    }
    else if(Faction==14)
    {
    col1 = 22;
    col2 = 22;
    }
    else if(Faction==15)
    {
    col1 = 3;
    col2 = 3;
    }
    else if(Faction==16)
    {
    col1 = 6;
    col2 = 6;
    }
    else if(Faction==17)
    {
    col1 = 93;
    col2 = 93;
    }
    else if(Faction==18)
    {
    col1 = 12;
    col2 = 12;
    }
    else if(Faction==19)
    {
    col1 = 0;
    col2 = 0;
    }
    else if(Faction==20)
    {
    col1 = 1;
    col2 = 1;
    }
    else if(Faction==21)
    {
    col1 = 0;
    col2 = 0;
    }
    else if(Faction==22)
    {
    col1 = 3;
    col2 = 1;
    }
    else if(Faction==23)
    {
    col1 = 1;
    col2 = 1;
    }
    else if(Faction==24)
    {
    col1 = 1;
    col2 = 1;
    }
    else if(Faction==25)
    {
    col1 = 125;
    col2 = 125;
    }
    else
    {
    col1 = 125;
    col2 = 1;
    }
    return 1;
    }


    Hoffe mir kann jemand weiterhelfen :D


    Mfg


    Denis