Fehler Feuerwehr (GODFAHTER)

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
  • Hi,
    habe ein fehler, wenn ich compile kommen keine errors oder warnings.
    aber ingame naja. Passiert ÜBERhaupt nichts mit den Toren:



    if (strcmp("/ftor1", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor1, 1757.32, -1128.06, 26.35,2,0.00, 90.00, 90.00);//aufrtw
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    if (strcmp("/ftor1z", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor1, 1757.32, -1130.05, 24.46,2,0.00, 0.00, 90.00);//zurtw
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    //kdow1



    if (strcmp("/Tor2auf", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor2, 1747.77, -1127.98, 26.35,2,0.00, 90.00, 90.00);//aufkdow1
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    if (strcmp("/Tor2zu", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor2, 1747.75, -1130.08, 24.46,2,0.00, 0.00, 90.00);//zukdow1
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    //kdow2


    if (strcmp("/Tor3auf", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor3, 1740.63, -1128.10, 26.35,2,0.00, 90.00, 90.00);//aufkdow2
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    if (strcmp("/Tor3zu", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor3, 1740.61, -1130.07, 24.46,2,0.00, 0.00, 90.00);//zukdow2
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    //ab hier bitte die zuordnung nicht ändern habe in der reihenfolge die tore gesavet gehabt
    //htlf1


    if (strcmp("/Tor4auf", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor7, 1725.36, -1127.93, 26.35,2,0.00, 90.00, 90.00);//htlf1auf
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    if (strcmp("/Tor4zu", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor7, 1725.36, -1130.08, 24.46,2,0.00, 0.00, 90.00);//zuhtlf1
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    //htlf2



    if (strcmp("/Tor5auf", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor6, 1719.54, -1127.95, 26.35,2,0.00, 90.00, 90.00);//htlf2auf
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    if (strcmp("/Tor5zu", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor6, 1719.56, -1130.07, 24.46,2,0.00, 0.00, 90.00);//zuhtlf2
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    //htlf3




    if (strcmp("/Tor6auf", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor5, 1713.72, -1128.09, 26.35,2,0.00, 90.00, 90.00);//htlf3auf
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    if (strcmp("/Tor6zu", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor5, 1713.73, -1130.06, 24.46,2, 0.00, 0.00, 90.00);//zuhtlf3
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }


    //drehleiter



    if (strcmp("/Tor7auf", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor4, 1707.87, -1127.96, 26.35,2,0.00, 90.00, 90.00);//dlauf
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    if (strcmp("/Tor7zu", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor4, 1707.89, -1130.06, 24.46,2,0.00, 0.00, 90.00);//dlauf
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    //hinten




    if (strcmp("/Tor8auf", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor8, 1708.09, -1103.41, 26.39,2, 0.00, 90.00, 270.00);//hintenauf
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    if (strcmp("/Tor8zu", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor8, 1708.10, -1101.30, 24.46,2,0.00, 0.00, 270.00);//hintenzu
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }


    //allesauf


    if (strcmp("/ffwachezu", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor4, 1707.89, -1130.06, 24.46,2,0.00, 0.00, 90.00);//dlauf
    MoveDynamicObject(lsfdtor5, 1713.73, -1130.06, 24.46,2, 0.00, 0.00, 90.00);//zuhtlf3
    MoveDynamicObject(lsfdtor6, 1719.56, -1130.07, 24.46,2,0.00, 0.00, 90.00);//zuhtlf2
    MoveDynamicObject(lsfdtor7, 1725.36, -1130.08, 24.46,2,0.00, 0.00, 90.00);//zuhtlf1
    MoveDynamicObject(lsfdtor3, 1740.61, -1130.07, 24.46,2,0.00, 0.00, 90.00);//zukdow2
    MoveDynamicObject(lsfdtor2, 1747.75, -1130.08, 24.46,2,0.00, 0.00, 90.00);//zukdow1
    MoveDynamicObject(lsfdtor1, 1757.32, -1130.05, 24.46,2,0.00, 0.00, 90.00);//zurtw
    MoveDynamicObject(lsfdtor8, 1708.10, -1101.30, 24.46,2,0.00, 0.00, 270.00);//hintenzu
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }


    //alleszu
    if (strcmp("/ffwacheauf", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtor4, 1707.87, -1127.96, 26.35,2,0.00, 90.00, 90.00);//dlauf
    MoveDynamicObject(lsfdtor5, 1713.72, -1128.09, 26.35,2,0.00, 90.00, 90.00);//htlf3auf
    MoveDynamicObject(lsfdtor6, 1719.54, -1127.95, 26.35,2,0.00, 90.00, 90.00);//htlf2auf
    MoveDynamicObject(lsfdtor7, 1725.36, -1127.93, 26.35,2,0.00, 90.00, 90.00);//htlf1auf
    MoveDynamicObject(lsfdtor3, 1740.63, -1128.10, 26.35,2,0.00, 90.00, 90.00);//aufkdow2
    MoveDynamicObject(lsfdtor2, 1747.77, -1127.98, 26.35,2,0.00, 90.00, 90.00);//aufkdow1
    MoveDynamicObject(lsfdtor1, 1757.32, -1128.06, 26.35,2,0.00, 90.00, 90.00);//aufrtw
    MoveDynamicObject(lsfdtor8, 1708.09, -1103.41, 26.39,2,0.00, 90.00, 270.00);//hintenauf
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }




    //türvorne
    if (strcmp("/tvauf", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtuer1, 1731.61, -1130.11, 23.04,0.5,0.00, 0.00, 90.00);
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }


    if (strcmp("/tvzu", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtuer1, 1731.61, -1130.11, 23.04,0.5,0.00, 0.00, 0.00);
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    //türhinten
    if (strcmp("/thauf", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtuer2, 1735.13, -1101.33, 23.04,0.5, 0.00, 0.00, 280.00);
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }


    if (strcmp("/thzu", cmdtext, true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    MoveDynamicObject(lsfdtuer2, 1735.13, -1101.33, 23.04,0.5,0.00, 0.00, 180.00);
    }
    else
    {
    SendClientMessage(playerid, 0xFF002DFF, " Du bist kein Feuerwehrmann!");
    }
    return 1;
    }
    }


    Bitte um Hilfe.

  • haste die tore defeniert ?


    verwendest du den Icognito Streamer und seine MoveDynamicObject funktion ?


    was mir so auffällt sind das meine Tor Cmds von meiner Relaseten Feuerwache


    also dann ist es ja einfach :D



    neue news oben:



    new lsfdtor1;//rtwhalle
    new lsfdtor2;//kdwohalle 1
    new lsfdtor3;//kdowhalle 2
    new lsfdtor4;//dlhalle
    new lsfdtor5;//htlf3
    new lsfdtor6;//htlf2
    new lsfdtor7;//htlf1
    new lsfdtor8;//hintertor


    new lsfdtuer1; //vordertuer
    new lsfdtuer2; //hintertuer




    // unter ongamemode:


    //feuerwache LS Klein



    lsfdtor1 = CreateDynamicObject(5422, 1757.32, -1130.05, 24.46, 0.00, 0.00, 90.00);//rtwhalle
    lsfdtor2 = CreateDynamicObject(5422, 1747.75, -1130.08, 24.46, 0.00, 0.00, 90.00);//kdwohalle 1
    lsfdtor3 = CreateDynamicObject(5422, 1740.61, -1130.07, 24.46, 0.00, 0.00, 90.00);//kdowhalle 2
    lsfdtor7 = CreateDynamicObject(5422, 1725.36, -1130.08, 24.46, 0.00, 0.00, 90.00);//htlf1
    lsfdtor6 = CreateDynamicObject(5422, 1719.56, -1130.07, 24.46, 0.00, 0.00, 90.00);//htlf2
    lsfdtor5 = CreateDynamicObject(5422, 1713.73, -1130.06, 24.46, 0.00, 0.00, 90.00);//htlf3
    lsfdtor4 = CreateDynamicObject(5422, 1707.89, -1130.06, 24.46, 0.00, 0.00, 90.00);//dlhalle
    lsfdtor8 = CreateDynamicObject(5422, 1708.10, -1101.30, 24.46, 0.00, 0.00, 270.00);//hintertor


    lsfdtuer1 = CreateDynamicObject(1500, 1731.61, -1130.11, 23.04, 0.00, 0.00, 0.00); //vordertür
    lsfdtuer2 = CreateDynamicObject(1500, 1735.13, -1101.33, 23.04, 0.00, 0.00, 180.00); //hintertür


    solltest du diese sachen haben muss es auch gehen.


    MFG Weasel

    "90 % aller Deutschen Reallife/Roleplay Server sind TeamDeathmatch Server mit Bewerbungspflicht"

    "das Internet macht schlaue Menschen schlauer und dumme Menschen lauter."

  • ok ehm
    ich glaube es liegt daran:


    C:\Users\Home\Desktop\GeilesUCP\SA-MP Server\gamemodes\selfmade.pwn(3125) : warning 209: function "ocmdOnPlayerCommandText" should return a value



    kannst du mir helfen den warning zu löschen


    MfG