[Farmer] Ernte System Problem

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 Tag Community, unser Selfmade nähert sich sehr schnell der BETA doch wir haben ein Problem.
    Wir waren gerade dabei den Farmer Job zu scripten, ich habe alle Checkpoints ins Script eingetragen, sowie die Systeme + Befehle.
    Nun zeige ich euch mal die Codes:
    ocmd:ernten(playerid,params[])
    {
    if(GetPVarInt(playerid,"Job")==8)return SendClientMessage(playerid,Grau,"Du bist kein Farmer");
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 531 && GetVehicleModel( GetPlayerVehicleID(playerid)) != 532)return SendClientMessage(playerid,Grau,"Du bist in keinem Traktor/Drescher.");
    SetPlayerCheckpoint(playerid,-10.1318,128.0112,3.1172,5.0);
    FarmerCheckpoints[playerid] = 1;
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    if(FarmerCheckpoints[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,24.9482,73.3843,2.6818,5.0);
    FarmerCheckpoints[playerid] = 2;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,10.0307,28.6373,2.6802,5.0);
    FarmerCheckpoints[playerid] = 3;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 3)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,16.1632,17.9038,2.6807,5.0);
    FarmerCheckpoints[playerid] = 4;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 4)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,37.6021,62.1856,2.5825,5.0);
    FarmerCheckpoints[playerid] = 5;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 5)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,49.3651,55.4622,1.4289,5.0);
    FarmerCheckpoints[playerid] = 6;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 6)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,31.7826,-1.0522,2.6816,5.0);
    FarmerCheckpoints[playerid] = 7;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 7)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,41.6100,-13.0362,2.2602,5.0);
    FarmerCheckpoints[playerid] = 8;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 8)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,63.8461,39.6311,0.1675,5.0);
    FarmerCheckpoints[playerid] = 9;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 9)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,75.9683,34.0818,0.1727,5.0);
    FarmerCheckpoints[playerid] = 10;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 10)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,60.1481,-35.2762,0.4515,5.0);
    FarmerCheckpoints[playerid] = 11;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 11)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,54.4598,-89.2096,0.1730,5.0);
    FarmerCheckpoints[playerid] = 12;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 12)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,44.3599,-116.6739,0.1735,5.0);
    FarmerCheckpoints[playerid] = 13;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 13)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,27.6426,-122.9009,0.1716,5.0);
    FarmerCheckpoints[playerid] = 14;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 14)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,42.3068,-66.5095,0.3700,5.0);
    FarmerCheckpoints[playerid] = 15;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 15)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,32.7234,-48.5153,2.1045,5.0);
    FarmerCheckpoints[playerid] = 16;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 16)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,10.0383,-120.0863,0.1729,5.0);
    FarmerCheckpoints[playerid] = 17;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 17)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-10.7250,-117.9187,1.6554,5.0);
    FarmerCheckpoints[playerid] = 18;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 18)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,17.5235,-27.2077,2.6893,5.0);
    FarmerCheckpoints[playerid] = 19;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 19)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,6.6488,-14.9680,2.6750,5.0);
    FarmerCheckpoints[playerid] = 20;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 20)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-32.8566,-112.8498,2.6808,5.0);
    FarmerCheckpoints[playerid] = 21;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 21)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-49.6999,-110.6259,2.6886,5.0);
    FarmerCheckpoints[playerid] = 22;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 22)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-6.6115,-2.2916,2.6853,5.0);
    FarmerCheckpoints[playerid] = 23;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 23)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,20.0198,83.4523,2.6867,5.0);
    FarmerCheckpoints[playerid] = 24;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 24)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-34.6337,145.1502,2.6805,5.0);
    FarmerCheckpoints[playerid] = 25;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 25)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-100.6223,153.8086,2.7152,5.0);
    FarmerCheckpoints[playerid] = 26;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 26)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-118.5692,98.0629,2.6749,5.0);
    FarmerCheckpoints[playerid] = 27;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 27)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-132.6194,96.1285,2.6735,5.0);
    FarmerCheckpoints[playerid] = 28;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 28)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-115.8216,155.9404,3.1813,5.0);
    FarmerCheckpoints[playerid] = 29;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 29)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-124.0881,159.7664,3.6435,5.0);
    FarmerCheckpoints[playerid] = 30;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 30)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-144.5431,102.7297,2.6990,5.0);
    FarmerCheckpoints[playerid] = 30;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 31)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,155.0954,104.1073,2.7395,5.0);
    FarmerCheckpoints[playerid] = 31;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 32)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-136.5171,162.4235,4.5364,5.0);
    FarmerCheckpoints[playerid] = 32;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 33)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-149.1596,166.9468,5.7608,5.0);
    FarmerCheckpoints[playerid] = 33;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 34)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-170.0525,111.4728,2.8559,5.0);
    FarmerCheckpoints[playerid] = 34;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 35)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-180.8178,116.0927,2.9440,5.0);
    FarmerCheckpoints[playerid] = 35;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 36)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-162.3162,169.7834,7.0304,5.0);
    FarmerCheckpoints[playerid] = 36;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 37)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-175.7044,175.7839,8.3332,5.0);
    FarmerCheckpoints[playerid] = 37;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 38)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-196.0174,125.8959,2.9848,5.0);
    FarmerCheckpoints[playerid] = 38;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 39)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-204.9294,130.4213,2.8703,5.0);
    FarmerCheckpoints[playerid] = 39;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 40)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-190.5509,176.0832,8.3519,5.0);
    FarmerCheckpoints[playerid] = 40;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 41)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-201.0268,177.3115,8.2212,5.0);
    FarmerCheckpoints[playerid] = 41;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 42)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-220.4276,130.6162,2.2869,5.0);
    FarmerCheckpoints[playerid] = 42;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 43)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-148.1338,87.5193,2.6809,5.0);
    FarmerCheckpoints[playerid] = 43;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 44)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-95.4232,76.0569,2.6744,5.0);
    FarmerCheckpoints[playerid] = 44;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 45)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-74.9410,122.0571,2.6706,5.0);
    FarmerCheckpoints[playerid] = 45;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 46)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-41.7733,124.6055,2.6774,5.0);
    FarmerCheckpoints[playerid] = 46;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 47)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-32.0008,85.8114,2.6854,5.0);
    SendClientMessage(playerid,Orange,"Dein Korntank ist voll. Fahre zur Halle um ihn zu entleeren.");
    FarmerCheckpoints[playerid] = 47;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 48)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,-38.0002,58.2806,2.6890,5.0);
    FarmerCheckpoints[playerid] = 48;
    SetPVarInt(playerid, "FarmerSkill", GetPVarInt(playerid, "FarmerSkill") + 1);
    }
    if(FarmerCheckpoints[playerid] == 49)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid,Orange,"Du hast die Tour beendet. Verdienst: 1500$. Das Geld bekommst du am Payday.");
    SetPVarInt(playerid, "Gehalt", GetPVarInt(playerid, "Gehalt") + 1500);
    }
    return 1;
    }


    Nur ab Checkpoint 2 passiert nichts mehr, warum nicht? Errors und Warnings habe ich keine.
    Hier noch der New
    new FarmerCheckpoints[MAX_PLAYERS];


    Mit freundlichen Grüßen,
    New-Roleplay



    /e Eingerückt
    /e new