Beiträge von Blackshadowscript

    ich habe:



    if(dialogid==DIALOG_Buslinien)
    {
    if(response)
    {
    printf("listitem: %d", listitem);
    if(listitem== 0)
    {
    if(!IsPlayerInRangeOfPoint(playerid,5,bust1cps[0][g_x],bust1cps[0][g_y],bust1cps[0][g_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 1 gestartet.");
    SetPlayerCheckpoint(playerid,bust1cps[0][g_x],bust1cps[0][g_y],bust1cps[0][g_z],5);
    printf("Zeige CP Route 1 für %d an %f/%f/%f", playerid,bust1cps[0][g_x],bust1cps[0][g_y],bust1cps[0][g_z]);
    }
    if(listitem== 1)
    {
    //Busliniet2
    if(!IsPlayerInRangeOfPoint(playerid,5,bust2cps[0][v_x],bust2cps[0][v_y],bust2cps[0][v_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 2 gestartet.");
    SetPlayerCheckpoint(playerid,bust2cps[0][v_x],bust2cps[0][v_y],bust2cps[0][v_z],5);
    printf("Zeige CP Route 2 für %d an %f/%f/%f", playerid,bust2cps[0][v_x],bust2cps[0][v_y],bust2cps[0][v_z]);
    }
    if(listitem== 2)
    {
    //Buslinie3
    if(!IsPlayerInRangeOfPoint(playerid,5,bust3cps[0][n_x],bust3cps[0][n_y],bust3cps[0][n_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 3 gestartet.");
    SetPlayerCheckpoint(playerid,bust3cps[0][n_x],bust3cps[0][n_y],bust3cps[0][n_z],5);
    printf("Zeige CP Route 3 für %d an %f/%f/%f", playerid,bust3cps[0][n_x],bust3cps[0][n_y],bust3cps[0][n_z]);
    }
    if(listitem== 3)
    {
    //Buslinie 4
    if(!IsPlayerInRangeOfPoint(playerid,5,bust4cps[0][m_x],bust4cps[0][m_y],bust4cps[0][m_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 4 gestartet.");
    SetPlayerCheckpoint(playerid,bust4cps[0][m_x],bust4cps[0][m_y],bust4cps[0][m_z],5);
    printf("Zeige CP Route 4 für %d an %f/%f/%f", playerid,bust4cps[0][m_x],bust4cps[0][m_y],bust4cps[0][m_z]);
    }
    printf("Fertig.");
    SetPVarInt(playerid,"bus_job",listitem+1);
    }
    else
    {
    SendClientMessage(playerid,grün,"Du hast keine Buslinie ausgewählt.");
    DestroyVehicle(GetPlayerVehicleID(playerid));
    return 1;
    }
    }
    return 1;
    }


    das genommen und dann kommt immer wieder "Ungültige Zeile "0"."

    wenn ich den code einfügen will kommt nur: "Ungültige Zeile "0"."





    OnPlayerEnterCheckpoint:


    if(GetPVarInt(playerid,"bus_job") == 1)
    {
    //wenn bus_job ausgeführt wird.
    new bID = GetPVarInt(playerid,"bus_cp");
    if(IsPlayerInRangeOfPoint(playerid,7,bust1cps[bID][g_x],bust1cps[bID][g_y],bust1cps[bID][g_z]))
    {
    bID++;
    if(bID >= sizeof(bust1cps))
    {
    GivePlayerMoney(playerid,6000);
    SetPVarInt(playerid,"bus_cp",0);
    SetPlayerCheckpoint(playerid,bust1cps[0][g_x],bust1cps[0][g_y],bust1cps[0][g_z],5);
    SendClientMessage(playerid,rot,"Du hast soeben 6.000$ verdient");
    }
    else
    {
    SetPVarInt(playerid,"bus_cp",bID);
    SetPlayerCheckpoint(playerid,bust1cps[bID][g_x],bust1cps[bID][g_y],bust1cps[bID][g_z],5);
    }
    }
    }

    else if(GetPVarInt(playerid,"bus_job") == 2)
    {
    //wenn bus_job ausgeführt wird.
    new bID = GetPVarInt(playerid,"bus_cp");
    if(IsPlayerInRangeOfPoint(playerid,7,bust2cps[bID][v_x],bust2cps[bID][v_y],bust2cps[bID][v_z]))
    {
    bID++;
    if(bID >= sizeof(bust2cps))
    {
    GivePlayerMoney(playerid,12000);
    SetPVarInt(playerid,"bus_cp",0);
    SetPlayerCheckpoint(playerid,bust2cps[0][v_x],bust2cps[0][v_y],bust2cps[0][v_z],5);
    SendClientMessage(playerid,rot,"Du hast soeben 12.000$ verdient");
    }
    else
    {
    SetPVarInt(playerid,"bus_cp",bID);
    SetPlayerCheckpoint(playerid,bust2cps[bID][v_x],bust2cps[bID][v_y],bust2cps[bID][v_z],5);
    }
    }
    }
    else if (GetPVarInt(playerid,"bus_job") == 3)
    {
    new bID = GetPVarInt(playerid,"bus_cp");
    if(IsPlayerInRangeOfPoint(playerid,7,bust3cps[bID][n_x],bust3cps[bID][n_y],bust3cps[bID][n_z]))
    {
    bID++;
    if(bID >= sizeof(bust3cps))
    {
    GivePlayerMoney(playerid,15000);
    SetPVarInt(playerid,"bus_cp",8);
    SetPlayerCheckpoint(playerid,bust3cps[bID][n_x],bust3cps[bID][n_y],bust3cps[bID][n_z],5);
    SendClientMessage(playerid,rot,"Du hast soeben 15.000$ verdient");
    }
    else
    {
    SetPVarInt(playerid,"bus_cp",bID);
    SetPlayerCheckpoint(playerid,bust3cps[bID][n_x],bust3cps[bID][n_y],bust3cps[bID][n_z],5);
    }
    }
    }
    else if(GetPVarInt(playerid,"bus_job") == 4)
    {
    new bID = GetPVarInt(playerid,"bus_cp");
    if(IsPlayerInRangeOfPoint(playerid,7,bust4cps[bID][m_x],bust4cps[bID][m_y],bust4cps[bID][m_z]))
    {
    bID++;
    if(bID >= sizeof(bust4cps))
    {
    GivePlayerMoney(playerid,30000);
    SetPVarInt(playerid,"bus_cp",8);
    SetPlayerCheckpoint(playerid,bust4cps[bID][m_x],bust4cps[bID][m_y],bust4cps[bID][m_z],5);
    SendClientMessage(playerid,rot,"Du hast soeben 30.000$ verdient");
    }
    else
    {
    SetPVarInt(playerid,"bus_cp",bID);
    SetPlayerCheckpoint(playerid,bust4cps[bID][m_x],bust4cps[bID][m_y],bust4cps[bID][m_z],5);
    }
    }
    }
    DisablePlayerCheckpoint(playerid);
    return 1;
    }

    Ja die Nachrichten bekomme ich.
    2. Erstercheckpoint wird zwar bei Linie 1 angezeigt aber bei den anderen Linien nicht.


    if(dialogid==DIALOG_Buslinien)
    {
    if(response)
    {
    if(listitem== 0)
    {
    if(!IsPlayerInRangeOfPoint(playerid,5,bust1cps[0][g_x],bust1cps[0][g_y],bust1cps[0][g_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 1 gestartet.");
    SetPlayerCheckpoint(playerid,bust1cps[0][g_x],bust1cps[0][g_y],bust1cps[0][g_z],5);

    }
    if(listitem== 1)
    {
    //Busliniet2
    if(!IsPlayerInRangeOfPoint(playerid,5,bust2cps[0][v_x],bust2cps[0][v_y],bust2cps[0][v_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 2 gestartet.");
    SetPlayerCheckpoint(playerid,bust2cps[0][v_x],bust2cps[0][v_y],bust2cps[0][v_z],5);
    }
    if(listitem== 2)
    {
    //Buslinie3
    if(!IsPlayerInRangeOfPoint(playerid,5,bust3cps[0][n_x],bust3cps[0][n_y],bust3cps[0][n_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 3 gestartet.");
    SetPlayerCheckpoint(playerid,bust3cps[0][n_x],bust3cps[0][n_y],bust3cps[0][n_z],5);
    }
    if(listitem== 3)
    {
    //Buslinie 4
    if(!IsPlayerInRangeOfPoint(playerid,5,bust4cps[0][m_x],bust4cps[0][m_y],bust4cps[0][m_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 4 gestartet.");
    SetPlayerCheckpoint(playerid,bust4cps[0][m_x],bust4cps[0][m_y],bust4cps[0][m_z],5);
    }
    SetPVarInt(playerid,"bus_job",listitem+1);
    }
    else
    {
    SendClientMessage(playerid,grün,"Du hast keine Buslinie ausgewählt.");
    DestroyVehicle(GetPlayerVehicleID(playerid));
    return 1;
    }
    }
    return 1;
    }

    Dev_Grab was versteht ihr nicht?



    1: Ich habe noch keine Texturen drauf gemacht!
    2: Eure vorschläge sind nicht lohnenswert!
    3: Wer sagt das ich Reale Sachen Mappen möchte?!




    Danksagung:


    Danke an:


    GUCCI
    Fabi.StaR

    Ihr habt mir noch ordentliche Vorschläge gemacht

    Erster Checkpoint wird gesetzt aber weiter gehts nicht!




    Buslinie:


    Dialogdefine:
    #define DIALOG_Buslinien 5


    Enums:
    enum bus1Enum{
    Float:g_x,
    Float:g_y,
    Float:g_z
    }
    enum bus2Enum{
    Float:v_x,
    Float:v_y,
    Float:v_z
    }
    enum bus3Enum{
    Float:n_x,
    Float:n_y,
    Float:n_z
    }
    enum bus4Enum{
    Float:m_x,
    Float:m_y,
    Float:m_z
    }
    new bust1cps[][bus1Enum]={
    {1135.5480,-1693.4392,13.7931}, // busstarten
    {1722.2972,-1599.5205,13.5478},//buscp 1
    {1526.4220,-1660.5486,13.4871}, //buscp1
    {1467.7390,-1728.8627,13.4710}, //buscp1
    {1361.6545,-1285.1267,13.5398}, //buscp1
    {1446.1191,-1029.5895,23.8441},//buscp 1
    {1275.4427,-1380.3951,13.3839} //buscp1 letzte

    };
    new bust2cps[][bus2Enum]={
    {1135.5480,-1693.4392,13.7931}, // busstarten
    {1378.1691,-1876.8495,13.1888},
    {1937.2477,-2171.4868,13.1890},
    {2327.6970,-2054.9773,13.1441},
    {2719.7451,-2029.7438,13.1351},
    {2774.6575,-1942.9828,13.1381},
    {2683.9724,-1871.7905,10.6911},
    {2741.3979,-1610.1760,12.5695},
    {2682.0027,-1459.3654,30.1905},
    {2418.9873,-1251.8312,23.5439},
    {2007.6500,-1455.2505,13.1968}
    };
    new bust3cps[][bus3Enum]={
    {1135.5480,-1693.4392,13.7931}, // busstarten
    {1679.9683,-1293.2322,13.6465},
    {1453.7729,-1029.0790,23.4661},
    {1330.3799,-920.0157,36.3406},
    {1208.4860,-930.5677,42.5413},
    {1000.6902,-953.3558,41.7086},
    {820.6417,-1032.6522,24.7459},
    {792.3692,-1120.2891,23.4660},
    {937.4135,-1202.0179,17.4626}
    };
    new bust4cps[][bus4Enum]={
    {1135.5480,-1693.4392,13.7931}, // busstarten
    {912.7061,-1544.2203,13.1864},
    {1373.5081,-1737.3380,13.1889},
    {1460.0719,-1386.0859,13.1890},
    {1191.4703,-1472.5956,13.1890},
    {1087.5948,-1707.3693,13.1890},
    {978.7953,-1567.1348,13.2248},
    {484.9120,-1577.5508,21.0505},
    {454.7106,-1498.5461,30.7047},
    {343.1253,-1523.9889,33.0096},
    {280.3340,-1643.8889,33.0396},
    {425.5682,-1696.6198,9.6370},
    {237.6003,-1737.2343,3.8593}
    };


    OCMD-Befehl:
    ocmd:buslinie(playerid,params[])
    {
    if(!IsPlayerInRangeOfPoint(playerid,5,1135.5480,-1693.4392,13.7931))return
    SendClientMessage(playerid,helblau,"Du kannst den Job hier nicht starten");
    new Float:ox,Float:oy,Float:oz,Float:or;
    GetPlayerPos(playerid,ox,oy,oz);
    GetPlayerFacingAngle(playerid,or);
    new vID = CreateVehicle(431,ox,oy,oz,or,-1,-1,-1);
    SetPVarInt(playerid,"bus_car",vID);
    SendClientMessage(playerid,rot,"Du hast dein Routenplaner geöffnent.");
    PutPlayerInVehicle(playerid,vID,0);
    ShowPlayerDialog(playerid,DIALOG_Buslinien,DIALOG_STYLE_LIST,"Busstrecke.","Buslinie1\nBuslinie2\nBuslinie3\nBuslinie4","Annehmen","Abbrechen");
    SetPVarInt(playerid,"bus_cp",0);
    SetPVarInt(playerid,"bus_job",1);


    return 1;
    }


    OnPlayerEnterCheckpoint:
    if(GetPVarInt(playerid,"bus_job") == 1)
    {
    //wenn bus_job ausgeführt wird.
    new bID = GetPVarInt(playerid,"bus_cp");
    if(IsPlayerInRangeOfPoint(playerid,7,bust1cps[bID][g_x],bust1cps[bID][g_y],bust1cps[bID][g_z]))
    {
    bID++;
    if(bID >= sizeof(bust1cps))
    {
    GivePlayerMoney(playerid,6000);
    SetPVarInt(playerid,"bus_cp",0);
    SetPlayerCheckpoint(playerid,bust1cps[0][g_x],bust1cps[0][g_y],bust1cps[0][g_z],5);
    SendClientMessage(playerid,rot,"Du hast soeben 6.000$ verdient");
    }
    else
    {
    SetPVarInt(playerid,"bus_cp",bID);
    SetPlayerCheckpoint(playerid,bust1cps[bID][g_x],bust1cps[bID][g_y],bust1cps[bID][g_z],5);
    }
    }
    }

    else if(GetPVarInt(playerid,"bus_job") == 2)
    {
    //wenn bus_job ausgeführt wird.
    new bID = GetPVarInt(playerid,"bus_cp");
    if(IsPlayerInRangeOfPoint(playerid,7,bust2cps[bID][v_x],bust2cps[bID][v_y],bust2cps[bID][v_z]))
    {
    bID++;
    if(bID >= sizeof(bust2cps))
    {
    GivePlayerMoney(playerid,12000);
    SetPVarInt(playerid,"bus_cp",0);
    SetPlayerCheckpoint(playerid,bust2cps[0][v_x],bust2cps[0][v_y],bust2cps[0][v_z],5);
    SendClientMessage(playerid,rot,"Du hast soeben 12.000$ verdient");
    }
    else
    {
    SetPVarInt(playerid,"bus_cp",bID);
    SetPlayerCheckpoint(playerid,bust2cps[bID][v_x],bust2cps[bID][v_y],bust2cps[bID][v_z],5);
    }
    }
    }
    else if (GetPVarInt(playerid,"bus_job") == 3)
    {
    new bID = GetPVarInt(playerid,"bus_cp");
    if(IsPlayerInRangeOfPoint(playerid,7,bust3cps[bID][n_x],bust3cps[bID][n_y],bust3cps[bID][n_z]))
    {
    bID++;
    if(bID >= sizeof(bust3cps))
    {
    GivePlayerMoney(playerid,15000);
    SetPVarInt(playerid,"bus_cp",8);
    SetPlayerCheckpoint(playerid,bust3cps[bID][n_x],bust3cps[bID][n_y],bust3cps[bID][n_z],5);
    SendClientMessage(playerid,rot,"Du hast soeben 15.000$ verdient");
    }
    else
    {
    SetPVarInt(playerid,"bus_cp",bID);
    SetPlayerCheckpoint(playerid,bust3cps[bID][n_x],bust3cps[bID][n_y],bust3cps[bID][n_z],5);
    }
    }
    }
    else if(GetPVarInt(playerid,"bus_job") == 4)
    {
    new bID = GetPVarInt(playerid,"bus_cp");
    if(IsPlayerInRangeOfPoint(playerid,7,bust4cps[bID][m_x],bust4cps[bID][m_y],bust4cps[bID][m_z]))
    {
    bID++;
    if(bID >= sizeof(bust4cps))
    {
    GivePlayerMoney(playerid,30000);
    SetPVarInt(playerid,"bus_cp",8);
    SetPlayerCheckpoint(playerid,bust4cps[bID][m_x],bust4cps[bID][m_y],bust4cps[bID][m_z],5);
    SendClientMessage(playerid,rot,"Du hast soeben 30.000$ verdient");
    }
    else
    {
    SetPVarInt(playerid,"bus_cp",bID);
    SetPlayerCheckpoint(playerid,bust4cps[bID][m_x],bust4cps[bID][m_y],bust4cps[bID][m_z],5);
    }
    }
    }
    DisablePlayerCheckpoint(playerid);
    return 1;
    }


    Dialgo:
    if(dialogid==DIALOG_Buslinien)
    {
    if(response)
    {
    if(listitem== 0)
    {
    if(!IsPlayerInRangeOfPoint(playerid,5,bust1cps[0][g_x],bust1cps[0][g_y],bust1cps[0][g_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 1 gestartet.");
    SetPlayerCheckpoint(playerid,bust1cps[0][g_x],bust1cps[0][g_y],bust1cps[0][g_z],5);

    }
    if(listitem== 1)
    {
    //Busliniet2
    if(!IsPlayerInRangeOfPoint(playerid,5,bust2cps[0][v_x],bust2cps[0][v_y],bust2cps[0][v_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 2 gestartet.");
    SetPlayerCheckpoint(playerid,bust2cps[0][v_x],bust2cps[0][v_y],bust2cps[0][v_z],5);
    }
    if(listitem== 2)
    {
    //Buslinie3
    if(!IsPlayerInRangeOfPoint(playerid,5,bust3cps[0][n_x],bust3cps[0][n_y],bust3cps[0][n_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 3 gestartet.");
    SetPlayerCheckpoint(playerid,bust3cps[0][n_x],bust3cps[0][n_y],bust3cps[0][n_z],5);
    }
    if(listitem== 3)
    {
    //Buslinie 4
    if(!IsPlayerInRangeOfPoint(playerid,5,bust4cps[0][m_x],bust4cps[0][m_y],bust4cps[0][m_z]))return 1;
    SendClientMessage(playerid,helblau,"Du hast die Busroute 4 gestartet.");
    SetPlayerCheckpoint(playerid,bust4cps[0][m_x],bust4cps[0][m_y],bust4cps[0][m_z],5);
    }
    }
    else
    {
    SendClientMessage(playerid,grün,"Du hast keine Buslinie ausgewählt.");
    DestroyVehicle(GetPlayerVehicleID(playerid));
    return 1;
    }
    }
    return 1;
    }

    Die Checkpoints werden nicht geladen.



    Ich habe den verdacht das es vielleicht am Dialog liegen könnte:



    if(dialogid==DIALOG_Buslinien)
    {
    if(response)
    {
    if(listitem== 0)
    {
    if(!IsPlayerInRangeOfPoint(playerid,5,bust1cps[0][g_x],bust1cps[0][g_y],bust1cps[0][g_z]))return
    SendClientMessage(playerid,helblau,"Du hast die Busroute gestartet.");
    SetPlayerCheckpoint(playerid,bust1cps[0][g_x],bust1cps[0][g_y],bust1cps[0][g_z],5);


    }
    if(listitem== 1)
    {
    //Busliniet2
    if(!IsPlayerInRangeOfPoint(playerid,5,bust2cps[0][v_x],bust2cps[0][v_y],bust2cps[0][v_z]))return
    SendClientMessage(playerid,helblau,"Du hast die Busroute gestartet.");
    SetPlayerCheckpoint(playerid,bust2cps[0][v_x],bust2cps[0][v_y],bust2cps[0][v_z],5);


    }


    if(listitem== 2)
    {
    //Buslinie3
    if(!IsPlayerInRangeOfPoint(playerid,5,bust3cps[0][n_x],bust3cps[0][n_y],bust3cps[0][n_z]))return
    SendClientMessage(playerid,helblau,"Du hast die Busroute gestartet.");
    SetPlayerCheckpoint(playerid,bust3cps[0][n_x],bust3cps[0][n_y],bust3cps[0][n_z],5);
    }


    if(listitem== 3)
    {
    //Buslinie 4
    if(!IsPlayerInRangeOfPoint(playerid,5,bust4cps[0][m_x],bust4cps[0][m_y],bust4cps[0][m_z]))return
    SendClientMessage(playerid,helblau,"Du hast die Busroute gestartet.");
    SetPlayerCheckpoint(playerid,bust4cps[0][m_x],bust4cps[0][m_y],bust4cps[0][m_z],5);
    }
    }
    else
    {
    SendClientMessage(playerid,grün,"Du hast keine Buslinie ausgewählt.");
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(431);
    return 1;
    }
    }
    return 1;
    }

    wenn ich den code so nehme wie du den gepostet hast kommen:


    samplernen.p(1230) : error 017: undefined symbol "bID"
    samplernen.p(1232) : error 017: undefined symbol "bID"
    samplernen.p(1232) : warning 215: expression has no effect
    samplernen.p(1233) : error 017: undefined symbol "bID"
    samplernen.p(1237) : error 017: undefined symbol "bID"
    samplernen.p(1242) : error 017: undefined symbol "bID"
    samplernen.p(1243) : error 017: undefined symbol "bID"
    samplernen.p(1249) : error 017: undefined symbol "bID"
    samplernen.p(1251) : error 017: undefined symbol "bID"
    samplernen.p(1251) : warning 215: expression has no effect
    samplernen.p(1252) : error 017: undefined symbol "bID"
    samplernen.p(1256) : error 017: undefined symbol "bID"
    samplernen.p(1261) : error 017: undefined symbol "bID"
    samplernen.p(1262) : error 017: undefined symbol "bID"


    fehler

    Guten Abend.


    Ich habe ein Problem bei den Fraktionstoren:



    enum für die Fraktionen:
    enum frakteEnum{

    f_name[300],
    Float:f_x,
    Float:f_y,
    Float:f_z,
    Float:f_r,
    f_inter,
    f_world,
    f_color
    }


    finfo:
    new fInfo[][frakteEnum] ={
    {"zivi",0.0,0.0,0.0,0.0,0,0,weiß}, //zivi //0= 1
    {"LVPD",2286.9927,2431.6108,10.8203,176.4932,0,0,dunkelblau}, //LVPD 1 = 2
    {"SWAT",-2719.8411,-318.3455,7.8438,46.7307,0,0,helblau}, //SWAT
    {"FBI",-1606.3145,712.2166,13.8672,14.9407,0,0,duneklhelblau}, //FBI
    {"ARMY",245.4032,1859.6956,14.0840,86.8001,0,0,hellgrün}, //ARMY
    {"Medic/Feuerwehr",-319.8502,1049.1862,20.3403,351.6078,0,0,rot}, //MEDIC/FEUERWEHR
    {"FAHRSCHULE",662.8862,1716.9479,7.1875,37.0085,0,0,orange}, //FAHRSCHULE
    {"Aztecas",1531.2836,751.6505,11.0234,265.7675,0,0,türkis}, //Aztecas
    {"VAGOS",-2280.8035,2288.0842,4.9590,285.9662,0,0,gelb}, //VAGOS
    {"BALLAS",1457.6174,2772.6257,10.8203,263.1655,0,0,pink}, //BALLAS
    {"YAKUZA",1956.0493,729.8642,10.8203,106.5192,0,0,grau}// YAKUZA
    };


    PlayerSpawn:
    isPlayerInFrakt(playerid,f_id){
    if(sInfo[playerid][fraktion]==f_id)return 1;
    return 0;
    }


    public OnPlayerSpawn(playerid)
    {
    if(!isPlayerInFrakt(playerid,0))
    {
    if(sInfo[playerid][spawnchange]==1)
    {


    new fID;
    fID= sInfo[playerid][fraktion];
    SetPlayerPos(playerid,fInfo[fID][f_x],fInfo[fID][f_y],fInfo[fID][f_z]);
    SetPlayerFacingAngle(playerid,fInfo[fID][f_r]);
    SetPlayerInterior(playerid,fInfo[fID][f_inter]);
    SetPlayerVirtualWorld(playerid,fInfo[fID][f_world]);
    SetPlayerColor(playerid,fInfo[fID][f_color]);
    }
    }
    return 1;
    }



    Tor fürs lvpd:
    /*torauf:
    CreateObject(980, 1158.38025, -1310.79846, 3.60545, 0.00000, 0.00000, 59.31096);*/
    //ocmd Befehle:
    ocmd:torzu(playerid,params)
    {
    if(!isPlayerInFrakt(playerid,1))return
    SendClientMessage(playerid,rot,"Du bist nicht in der Fraktion");
    {
    MoveObject(testtor,1158.38025, -1310.79846, 10.26259,2,0.00000, 0.00000, 59.31096 );
    SendClientMessage(playerid,grün,"Du hast das Tor zu gemacht!");
    return 1;
    }
    }
    ocmd:torauf(playerid,params)
    {
    if(!isPlayerInFrakt(playerid,1))return
    SendClientMessage(playerid,rot,"Du bist nicht in der Fraktion!");
    {
    MoveObject(testtor,1158.38025, -1310.79846, 3.60545,3);
    //MovePlayerObject(playerid,980,1158.38025, -1310.79846, 4.6154,10,0.0000,0.0000,59.3110);
    SendClientMessage(playerid,grün,"Das Tor wurde geöffnent!");
    return 1;
    }
    }
    wenn ich als LVPD mache sagt er mir immer:
    SendClientMessage(playerid,rot,"Du bist nicht in der Fraktion!");


    Ich frage mich nur wieso der mich nicht als fraktion LVPD ansieht.

    ocmd:geldgeben(playerid,params[])
    {
    if(!isAdmin(playerid,6)) return SendClientMessage(playerid,grün,"Dein Adminrang ist nicht hochgenug!");
    new pID,GeldID;
    if(sscanf(params,"ui",pID,)) return SendClientMessage(playerid,grün,"Benutzung: /geldgeben [SpielerID] [Geld]");
    if(GeldID<1||GeldID>46)return SendClientMessage(playerid,rot,"Falsche Waffenid!");
    GivePlayerMoney(pID, GeldID);
    SendClientMessage(playerid,rot,"Dir wurden soeben Geldgegeben!");
    return 1;
    }


    fehler:

    Code
    samplernen.p(595) : error 029: invalid expression, assumed zero
    samplernen.p(595) : error 001: expected token: ")", but found "return"


    ich bekomm es einfach nicht hin das es kein fehler gibt.