dcmd_job 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.
    Wenn ich ingame /job eingebe funktioniert dies nicht



    dcmd_job(playerid,params[])
    {
    #pragma unused params
    if(PlayerToPoint(1.5, playerid,1351.4164,346.9079,20.5005))//Trucker Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 1)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,161.8728,-10.3473,1.5781))//Lieferant Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 2)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,-23.0037,75.6979,3.1096))//Landwirt Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 3)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(5.0, playerid,287.9252,1392.1503,10.5859))//Tankfahrer Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 4)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,602.1788,867.7868,-42.9609))//Erzarbeiter Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 5)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,757.6892,373.9059,23.2031))//Fischer Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 6)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,376.8722,-75.0238,1.4068))//Müllmann Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 7)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,1225.1147,182.7358,20.4159))//Mechaniker Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 9)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,-2409.7849,-2185.9783,33.2891))//Forscher Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 11)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,-538.5905,-78.1442,62.8672))//Holzfäller Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 12)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    }
    return 1;
    }



    Die positionen sind richtig