/goverment /gov mein scripter is zu müde

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 mein Scripter is zu müde für das fertig scripten wir haben 5errors if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][Leader] < 1), if(PlayerInfo[playerid][pLeader] < 2), if(PlayerInfo[playerid][Leader] < 3), if(PlayerInfo[playerid][pLeader] < 4), if(PlayerInfo[playerid][Leader] < 5), if(PlayerInfo[playerid][pLeader] < 6), if(PlayerInfo[playerid][Leader] < 7), if(PlayerInfo[playerid][pLeader] < 8), if(PlayerInfo[playerid][Leader] < 9), if(PlayerInfo[playerid][pLeader] < 10), if(PlayerInfo[playerid][Leader] < 11), if(PlayerInfo[playerid][pLeader] < 12), if(PlayerInfo[playerid][Leader] < 13), if(PlayerInfo[playerid][pLeader] < 14), if(PlayerInfo[playerid][Leader] < 15), if(PlayerInfo[playerid][pLeader] < 16), if(PlayerInfo[playerid][Leader] < 17), if(PlayerInfo[playerid][pLeader] < 18), if(PlayerInfo[playerid][Leader] < 19), if(PlayerInfo[playerid][pLeader] < 20), if(PlayerInfo[playerid][Leader] < 21), if(PlayerInfo[playerid][pLeader] < 22), if(PlayerInfo[playerid][Leader] < 23), if(PlayerInfo[playerid][pLeader] < 24)

    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Fraktions Leader!");
    return 1;
    }
    if(PlayerInfo[playerid][pRank] < 12)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du benötigst mindestens Rang 12!");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new leader = PlayerInfo[playerid][pLeader];
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /gov(ernment) [Nachricht]");
    return 1;
    }
    SendClientMessageToAll(COLOR_WHITE, "|================= {FF0000}Fraktions - News {FFFFFF}=================|");
    if(PlayerInfo[playerid][pLeader] == 1)
    {
    format(string, sizeof(string), "LSPD - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 2)
    {
    format(string, sizeof(string), "JVA - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 3)
    {
    format(string, sizeof(string), "Army - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 4)
    {
    format(string, sizeof(string), "Medic - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 5)
    {
    format(string, sizeof(string), "LCN - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 6)
    {
    format(string, sizeof(string), "Yakuza - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 7)
    {
    format(string, sizeof(string), "Präsident %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 8)
    {
    format(string, sizeof(string), "Hitman - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 9)
    {
    format(string, sizeof(string), "CNN - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 10)
    {
    format(string, sizeof(string), "Taxi - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 11)
    {
    format(string, sizeof(string), "Fahrlehrer - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 12)
    {
    format(string, sizeof(string), "Triaden - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 13)
    {
    format(string, sizeof(string), "Grove Street - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 14)
    {
    format(string, sizeof(string), "Ballas - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 15)
    {
    format(string, sizeof(string), "LS Biker Club - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 16)
    {
    format(string, sizeof(string), "Vagos - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 17)
    {
    format(string, sizeof(string), "Aztecas - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 18)
    {
    format(string, sizeof(string), "Rifa - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 19)
    {
    format(string, sizeof(string), "Red Soliders - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 20)
    {
    format(string, sizeof(string), "Terror - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 21)
    {
    format(string, sizeof(string), "Wheelman - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 22)
    {
    format(string, sizeof(string), "Feuerwehr - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 23)
    {
    format(string, sizeof(string), "Russkaja Bratwa - Leader %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pLeader] == 24)
    {
    format(string, sizeof(string), "Ordnungsamr - Leader %s: %s", sendername, result);
    }
    SendClientMessageToAll(COLOR_DBLUE, string);
    }
    return 1;
    }



    Wäre sehr hilfreich :) thx

  • D:\GTA\GTA Scripte\SoLLife 0.9\gamemodes\GM1.pwn(20321) : error 075: input line too long (after substitutions)
    D:\GTA\GTA Scripte\SoLLife 0.9\gamemodes\GM1.pwn(20322) : error 029: invalid expression, assumed zero
    D:\GTA\GTA Scripte\SoLLife 0.9\gamemodes\GM1.pwn(20322) : warning 215: expression has no effect
    D:\GTA\GTA Scripte\SoLLife 0.9\gamemodes\GM1.pwn(20322) : error 001: expected token: ";", but found "if"
    D:\GTA\GTA Scripte\SoLLife 0.9\gamemodes\GM1.pwn(20322) : error 017: undefined symbol "Leader"
    D:\GTA\GTA Scripte\SoLLife 0.9\gamemodes\GM1.pwn(20322) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.

  • if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][Leader] < 1), if(PlayerInfo[playerid][pLeader] < 2), if(PlayerInfo[playerid][Leader] < 3), if(PlayerInfo[playerid][pLeader] < 4), if(PlayerInfo[playerid][Leader] < 5), if(PlayerInfo[playerid][pLeader] < 6), if(PlayerInfo[playerid][Leader] < 7), if(PlayerInfo[playerid][pLeader] < 8), if(PlayerInfo[playerid][Leader] < 9), if(PlayerInfo[playerid][pLeader] < 10), if(PlayerInfo[playerid][Leader] < 11), if(PlayerInfo[playerid][pLeader] < 12), if(PlayerInfo[playerid][Leader] < 13), if(PlayerInfo[playerid][pLeader] < 14), if(PlayerInfo[playerid][Leader] < 15), if(PlayerInfo[playerid][pLeader] < 16), if(PlayerInfo[playerid][Leader] < 17), if(PlayerInfo[playerid][pLeader] < 18), if(PlayerInfo[playerid][Leader] < 19), if(PlayerInfo[playerid][pLeader] < 20), if(PlayerInfo[playerid][Leader] < 21), if(PlayerInfo[playerid][pLeader] < 22), if(PlayerInfo[playerid][Leader] < 23), if(PlayerInfo[playerid][pLeader


    das sind die zeilen

  • sicher das Leader in pInfo auch drin ist ?
    wen es garnet geht mach doch einfach



    if(IsACop(playerid))

  • if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][Leader] < 1), if(PlayerInfo[playerid][pLeader] < 2), if(PlayerInfo[playerid][Leader] < 3), if(PlayerInfo[playerid][pLeader] < 4), if(PlayerInfo[playerid][Leader] < 5), if(PlayerInfo[playerid][pLeader] < 6), if(PlayerInfo[playerid][Leader] < 7), if(PlayerInfo[playerid][pLeader] < 8), if(PlayerInfo[playerid][Leader] < 9), if(PlayerInfo[playerid][pLeader] < 10), if(PlayerInfo[playerid][Leader] < 11), if(PlayerInfo[playerid][pLeader] < 12), if(PlayerInfo[playerid][Leader] < 13), if(PlayerInfo[playerid][pLeader] < 14), if(PlayerInfo[playerid][Leader] < 15), if(PlayerInfo[playerid][pLeader] < 16), if(PlayerInfo[playerid][Leader] < 17), if(PlayerInfo[playerid][pLeader] < 18), if(PlayerInfo[playerid][Leader] < 19), if(PlayerInfo[playerid][pLeader] < 20), if(PlayerInfo[playerid][Leader] < 21), if(PlayerInfo[playerid][pLeader] < 22), if(PlayerInfo[playerid][Leader] < 23), if(PlayerInfo[playerid][pLeader]


    das sind die zeilen

    Da hat schonmal eine Klammer gefehlt. ^^

    [tabmenu][tab=Signatur,'http://bit.ly/1i4RY3v']

    Wie poste ich richtig?
    Nachdem du Google, die FAQ und die Suchfunktion erfolgreich ignoriert hast, erstellst du 2 bis 5 neue Themen in den falschen Unterforen mit lustigem Titel,
    zu vielen Ausrufezeichen und undeutlichem Text, unter dem sich jeder etwas anders vorstellen kann.



    Mr.Dubstep | GFX | Scripting | Hackerplace
    If Mr.DubStep don't have it, you don't need it.

    [tab=Spieler bei,'http://bit.ly/1db2jaf'][subtab=Hackerplace,'http://bit.ly/1bswN2T']


    Welch wunderschöner Hack ist heute vollzogen worden, könntest Du mir es denn sagen? Ein wunderschönes Browsergame, auch für Kleinigkeiten unterwegs. Erschaffe deinen eigenen Computer, nutze ihn um anderen das Geld zu rauben, schließe dich einem Clan an oder gründe selbst einen. Bleibe allein oder mit vielen Freunden.

  • wie gesagt ihr müsst leader definiren !!!!!!!


    also was ihr da macht ist fail hoch 10 :D
    habt ihr gf oder selfmade weil in ein gf ist leader immer vorhanden :whistling:


  • if(PlayerInfo[playerid][pLeader] < 1), if(PlayerInfo[playerid][pLeader] < 2), if(PlayerInfo[playerid][Leader] < 3), if(PlayerInfo[playerid][pLeader] < 4), if(PlayerInfo[playerid][Leader] < 5), if(PlayerInfo[playerid][pLeader] < 6), if(PlayerInfo[playerid][Leader] < 7), if(PlayerInfo[playerid][pLeader] < 8), if(PlayerInfo[playerid][Leader] < 9), if(PlayerInfo[playerid][pLeader] < 10), if(PlayerInfo[playerid][Leader] < 11), if(PlayerInfo[playerid][pLeader] < 12), if(PlayerInfo[playerid][Leader] < 13), if(PlayerInfo[playerid][pLeader] < 14), if(PlayerInfo[playerid][Leader] < 15), if(PlayerInfo[playerid][pLeader] < 16), if(PlayerInfo[playerid][Leader] < 17), if(PlayerInfo[playerid][pLeader] < 18), if(PlayerInfo[playerid][Leader] < 19), if(PlayerInfo[playerid][pLeader] < 20), if(PlayerInfo[playerid][Leader] < 21), if(PlayerInfo[playerid][pLeader] < 22), if(PlayerInfo[playerid][pLeader] < 23), if(PlayerInfo[playerid][pLeader] < 24)

  • Achja,
    Du scriptest ein GF nach.
    Und ich bin der Hans-Dieter.


    @topic:
    Ihr seit ja mal genies.
    So ne Abfrage zu machen -.-
    if(PlayerInfo[playerid][Leader] < 1), if(PlayerInfo[playerid][pLeader] < 2), if(PlayerInfo[playerid][Leader] < 3), if(PlayerInfo[playerid][pLeader] < 4), if(PlayerInfo[playerid][Leader] < 5), if(PlayerInfo[playerid][pLeader] < 6), if(PlayerInfo[playerid][Leader] < 7), if(PlayerInfo[playerid][pLeader] < 8), if(PlayerInfo[playerid][Leader] < 9), if(PlayerInfo[playerid][pLeader] < 10), if(PlayerInfo[playerid][Leader] < 11), if(PlayerInfo[playerid][pLeader] < 12), if(PlayerInfo[playerid][Leader] < 13), if(PlayerInfo[playerid][pLeader] < 14), if(PlayerInfo[playerid][Leader] < 15), if(PlayerInfo[playerid][pLeader] < 16), if(PlayerInfo[playerid][Leader] < 17), if(PlayerInfo[playerid][pLeader] < 18), if(PlayerInfo[playerid][Leader] < 19), if(PlayerInfo[playerid][pLeader] < 20), if(PlayerInfo[playerid][Leader] < 21), if(PlayerInfo[playerid][pLeader] < 22), if(PlayerInfo[playerid][Leader] < 23), if(PlayerInfo[playerid][pLeader] < 24


    Mach doch so:


    if(PlayerInfo[playerid][pLeader] >= 1 && PlayerInfo[playerid][pLeader] <= 24)


    oh man ....


    #e:
    pleader vergessen

  • Man muss doch nicht immer wieder auf einer Zeile mit if(.... beginnen....
    Es ist immer eine Abfrage. Wenn es der Leader einer Fraktion ist, wird das und das wiedergegeben
    wenn er kein Leader ist nicht.



    P.S du fragst ab ob der Leader kleiner als 1,2,3,4,5,6,7,8,9,10,11,12,13... ist

    graphics frontend web