Armygate - Need Help

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
  • #include <a_samp>


    new armyclose;
    new army;
    #define COLOR_YELLOW 0xFFFF00AA
    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n-----------eGoR-------------------");
    print("----------www.samp-rus.com----------");
    print("-------------eGoR-----------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n-----------eGoR-------------------");
    print("----------www.samp-rus.com----------");
    print("-------------eGoR-----------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    CreateObject(9625,1465.526123,-689.972961,94.750000,0.000000,0.000000,179.927780);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }
    public OnPlayerConnect(playerid)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Besucht mal unser Forum: www.Dread-Reallife.de.vu");
    return 1;


    }
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/armyclose", true) == 0){
    MoveObject(army, -1531.323120, 482.229584, 3.167624, 2.5);
    return 1;
    }
    if (strcmp(cmdtext, "/armyopen", true) == 0){
    MoveObject(armyclose, 2337.110840, 2447.060059, 4.950408, 2.5);
    return 1;
    }
    return 0;
    }

  • Wer denken kann weis das Problem xD sry^^
    #include <a_samp>


    new armyclose;
    new army;
    #define COLOR_YELLOW 0xFFFF00AA
    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n-----------eGoR-------------------");
    print("----------www.samp-rus.com----------");
    print("-------------eGoR-----------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n-----------eGoR-------------------");
    print("----------www.samp-rus.com----------");
    print("-------------eGoR-----------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    army=CreateObject(9625,1465.526123,-689.972961,94.750000,0.000000,0.000000,179.927780);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }
    public OnPlayerConnect(playerid)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Besucht mal unser Forum: www.Dread-Reallife.de.vu");
    return 1;


    }
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/armyclose", true) == 0){
    MoveObject(army, -1531.323120, 482.229584, 3.167624, 2.5);
    return 1;
    }
    if (strcmp(cmdtext, "/armyopen", true) == 0){
    MoveObject(armyclose, 2337.110840, 2447.060059, 4.950408, 2.5);
    return 1;
    }
    return 0;
    }

    So gehts..

  • Es geht mir eig. mehr darum dass man beschreibt was das Problem ist wenn man die Lösung will.
    Ich könnte dir ja auch ohne jeden Kommentar ein GF vorsetzen und fragen wo der Fehler ist.

    Help dcmd & sscanf to their way to Pawn domination. Read the tutorial below, and use it.
    dcmd & sscanf

  • #include <a_samp>


    new armyclose;
    new army;
    #define COLOR_YELLOW 0xFFFF00AA
    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n-----------eGoR-------------------");
    print("----------www.samp-rus.com----------");
    print("-------------eGoR-----------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n-----------eGoR-------------------");
    print("----------www.samp-rus.com----------");
    print("-------------eGoR-----------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    CreateObject(9625,1465.526123,-689.972961,94.750000,0.000000,0.000000,179.927780);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }
    public OnPlayerConnect(playerid)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Besucht mal unser Forum: www.Dread-Reallife.de.vu");
    return 1;


    }
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/armyclose", true) == 0){
    MoveObject(army, -1531.323120, 482.229584, 3.167624, 2.5);
    return 1;
    }
    if (strcmp(cmdtext, "/armyopen", true) == 0){
    MoveObject(army, 2337.110840, 2447.060059, 4.950408, 2.5);
    return 1;
    }
    return 0;
    }



    Habe es gemacht, geht tortzdme nicht.

  • Jetzt ist es so..


    #include <a_samp>


    new army;
    #define COLOR_YELLOW 0xFFFF00AA
    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n-----------eGoR-------------------");
    print("----------www.samp-rus.com----------");
    print("-------------eGoR-----------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n-----------eGoR-------------------");
    print("----------www.samp-rus.com----------");
    print("-------------eGoR-----------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    army = CreateObject(9625,1465.526123,-689.972961,94.750000,0.000000,0.000000,179.927780);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }
    public OnPlayerConnect(playerid)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Besucht mal unser Forum: www.Dread-Reallife.de.vu");
    return 1;


    }
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/armyclose", true) == 0){
    MoveObject(army, -1531.323120, 482.229584, 3.167624, 2.5);
    return 1;
    }
    if (strcmp(cmdtext, "/armyopen", true) == 0){
    MoveObject(army, 2337.110840, 2447.060059, 4.950408, 2.5);
    return 1;
    }
    return 0;
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Das ist sowieso komisch, die Koordinaten sind arg unterschiedlich :D
    Dort wo es beim starten des FS stehen soll :
    1465.526123,-689.972961,94.750000


    Dann wo es hinsoll wenn masn aufmacht:
    2337.110840, 2447.060059, 4.950408


    Und dann wo es hinsoll wenn mans zu macht:
    -1531.323120, 482.229584, 3.167624


    Da sind echt übelste unterschiede drinne 8|

  • Musterlösung :


    #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new army;


    public OnFilterScriptInit()
    {
    army = CreateObject(9625,1465.526123,-689.972961,94.750000,0.000000,0.000000,179.927780);


    print("\n--------------------------------------");
    print(" Army Tore By firefighter");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/armyopen", true) == 0)
    {
    MoveObject(army,2337.110840, 2447.060059, 4.950408, 2.5);
    SetTimer("GateClosearmytor1()", 5000, 0);
    return 1;
    }
    if (strcmp(cmdtext, "/armyclose ", true) == 0){
    MoveObject(army,-1531.323120, 482.229584, 3.167624, 2.5);
    return 1;
    }


    return 0;
    }


    Sollte so funktionieren !


    MFG firefighter


    PS: schreib mich mal per PN an, dann map und script ich dir das eben !!!!!