Gangjail Übernahme funktioniert nicht

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 Leute,
    Ich versuche gerade vom NeR das Gangjail System in mein BDC 0.7 zu übernehmen aber wenn ich das sehe:
    //Gangjail
    new gjailed;
    #define L_O 0xFFA600D6 //Cooles Oran


    dann suche ich nach gjailed und finde nur diese Sachen:
    if(strcmp(cmd,"/gsjail",true) == 0)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,5.5,2432.1873,-1667.2756,13.5346))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /gsjail [playerid]");
    return 1;
    }
    new para1;
    para1 = ReturnUser(tmp);
    if(para1 == playerid)
    {
    SendClientMessage(playerid,COLOR_GRAD2," Du kannst dich nicht selbst Jailen!");
    return 1;
    }
    if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID && gjailed == 0 || PlayerInfo[para1][pMember] != 13 || PlayerInfo[para1][pLeader] != 13)
    {
    if(IsPlayerInRangeOfPoint(para1,5.5,2432.1873,-1667.2756,13.5346))
    {
    if(GetPlayerState(para1) == PLAYER_STATE_PASSENGER)
    {
    SetPlayerPos(para1,2431.7326660156,-1673.6110839844,14.575711250305);
    gjailed = 1;


    new string2[128], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pname,sizeof(pname));
    format(string2,sizeof(string2),"*%s hat %s in den Gangknast gesteckt",sendername,giveplayer);
    ProxDetector(30.0, playerid, string2, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    format(string2,sizeof(string2),"*Du du wurdest von %s in den Gangknast gesteckt",sendername);
    SendClientMessage(para1,L_O,string);
    }
    }
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du darfst diesen Befehl nicht benutzen!!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRAD6," Du bist nicht beim Gangjail!");
    }
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRAD6," Du bist in keinem Fahrzeug");
    }
    return 1;
    }
    if(strcmp(cmd,"/gsunjail",true) == 0)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,5.5,2432.1873,-1667.2756,13.5346))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /gsunjail [playerid]");
    return 1;
    }
    new para1;
    para1 = ReturnUser(tmp);
    if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID || GetPlayerState(para1) == PLAYER_STATE_PASSENGER || gjailed == 0)
    {
    SetPlayerPos(para1,2432.1873,-1667.2756,13.5346);
    gjailed = 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du gehörst nicht zu der Groove Street!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRAD6," Du bist nicht beim Gangjail!");
    }
    }
    }
    return 1;
    }

    if(strcmp(cmd,"/bajail",true) == 0)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,5.5,2000.7942,-1095.8110,24.9841))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /bajail [playerid]");
    return 1;
    }
    new para1;
    para1 = ReturnUser(tmp);
    if(para1 == playerid)
    {
    SendClientMessage(playerid,COLOR_GRAD2," Du kannst dich nicht selbst Jailen!");
    return 1;
    }
    if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID && gjailed == 0 || PlayerInfo[para1][pMember] != 14 || PlayerInfo[para1][pLeader] != 14)
    {
    if(IsPlayerInRangeOfPoint(para1,5.5,2000.7942,-1095.8110,24.9841))
    {
    if(GetPlayerState(para1) == PLAYER_STATE_PASSENGER)
    {
    SetPlayerPos(para1,758.5106,-1126.7742,24.5839);
    gjailed = 1;


    new string2[128], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pname,sizeof(pname));
    format(string2,sizeof(string2),"*%s hat %s in den Gangknast gesteckt",sendername,giveplayer);
    ProxDetector(30.0, playerid, string2, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    format(string2,sizeof(string2),"*Du du wurdest von %s in den Gangknast gesteckt",sendername);
    SendClientMessage(para1,L_O,string);
    }
    }
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du darfst diesen Befehl nicht benutzen!!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRAD6," Du bist nicht beim Gangjail!");
    }
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRAD6," Du bist in keinem Fahrzeug");
    }
    return 1;
    }

    if(strcmp(cmd,"/baunjail",true) == 0)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,5.5,2000.7942,-1095.8110,24.984))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /baunjail [playerid]");
    return 1;
    }
    new para1;
    para1 = ReturnUser(tmp);
    if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID || GetPlayerState(para1) == PLAYER_STATE_PASSENGER || gjailed == 0)
    {
    SetPlayerPos(para1,2000.7942,-1095.8110,24.984);
    gjailed = 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du gehörst nicht zu den Ballas!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRAD6," Du bist nicht beim Gangjail!");
    }
    }
    }
    return 1;
    }


    Und es gibt keine Definition von GJAILED deswegen kommen in meine Script folgende Errors:
    C:\Users\Matthias\Desktop\SA-MP 0.3c\gamemodes\GeZReallifeloh.pwn(25325) : warning 217: loose indentation
    C:\Users\Matthias\Desktop\SA-MP 0.3c\gamemodes\GeZReallifeloh.pwn(25350) : error 017: undefined symbol "gjailed"
    C:\Users\Matthias\Desktop\SA-MP 0.3c\gamemodes\GeZReallifeloh.pwn(25357) : error 017: undefined symbol "gjailed"
    C:\Users\Matthias\Desktop\SA-MP 0.3c\gamemodes\GeZReallifeloh.pwn(25357) : warning 215: expression has no effect
    C:\Users\Matthias\Desktop\SA-MP 0.3c\gamemodes\GeZReallifeloh.pwn(25387) : warning 217: loose indentation
    C:\Users\Matthias\Desktop\SA-MP 0.3c\gamemodes\GeZReallifeloh.pwn(25407) : error 017: undefined symbol "gjailed"
    C:\Users\Matthias\Desktop\SA-MP 0.3c\gamemodes\GeZReallifeloh.pwn(25410) : error 017: undefined symbol "gjailed"
    C:\Users\Matthias/Desktop\SA-MP 0.3c\gamemodes\GeZReallifeloh.pwn(25410) : warning 215: expression has no effect


    Ich bitte um Hilfe und freue mich auf Antworten die mir weiterhelfen :)


    mfg Malies


    //Edit:Rechtschreibfehler

    Einmal editiert, zuletzt von Grigurax ()