AddPlayerClass-zuviel Code

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 Abend,


    Kennt zufällig jemand eine möglichkeit die PlayerClass Auswahl etwas abzukürzen ? Imo siehts bei mir nämlich so aus und hätte es nach möglichkeit gern etwas kompakter :whistling:



    AddPlayerClass(101,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(144,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(15,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(180,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(184,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(185,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(188,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(19,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(20,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(206,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(21,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(22,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(240,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(28,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(44,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(48,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(47,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(59,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(60,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(7,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(69,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(93,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(233,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(55,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(56,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(214,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(40,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(41,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(12,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(216,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(151,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(152,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(178,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(243,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(244,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(245,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(246,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(256,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(257,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);
    AddPlayerClass(63,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);



    Mit freundlichen Grüßen


    Traxter

    Einmal editiert, zuletzt von Traxter ()

  • Kompakter aber unübersichtlicher :D
    AddPlayerClass(101,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(144,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(15,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(180,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(184,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(185,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(188,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(19,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(20,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(206,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(21,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(22,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(240,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(28,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(44,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(48,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(47,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(59,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(60,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(7,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(69,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(93,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(233,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(55,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(56,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(214,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(40,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(41,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(12,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(216,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(151,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(152,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(178,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(243,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(244,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(245,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(246,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(256,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(257,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(63,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);


    //Edit Noch kürzer geht nicht dann kommen Errors :D
    AddPlayerClass(101,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(144,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(15,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(180,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0), AddPlayerClass(184,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(185,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(188,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(19,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(20,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(206,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(21,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(22,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(240,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(28,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(44,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(48,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(47,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(59,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(60,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(7,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(69,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(93,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(233,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(55,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(56,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(214,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(40,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(41,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(12,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(216,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(151,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(152,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(178,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(243,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(244,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),
    AddPlayerClass(245,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(246,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(256,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(257,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0),AddPlayerClass(63,1478.6328,-1640.3746,14.1484,184.0089,0,0,0,0,0,0);

  • Gute Idee, ich glaube so mach ichs..das ich da nicht selbst drauf gekommen bin :D


    Hätte ja sein können das man iwas machen kann damit man nicht bei jeder Player Class "AddPlayerClass" davorsetzen muss. Hatte da mal iwas in GF gesehen aber so gehts auch :D



    Closed :thumbup: