Gate nicht von überall auf der map öffnen

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
  • hä jetz sins schon 3. xDD
    ich geh dir bestimmt voll auf die ei**


    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(30) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(44) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(51) : warning 209: function "OnPlayerCommandText" should return a value
    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(52) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.


    #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);


    new tor1;


    public OnFilterScriptInit()
    {
    tor1 = CreateObject(971, 2299.667480, -1649.000854, 14.593271, 0.0000, 0.0000, 0.0000);
    return 1;
    }
    public OnFilterScriptExit()
    {
    return 1;
    }


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/open", true)==0)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    if(strcmp(name, "dontkillme", true)) return SendClientMessage(playerid, 0x33AA33AA,"Du hast hier keinen Zutritt");
    if(!PlayerToPoint(15.0, playerid, 1588.89,-1638.3,15.29))
    {
    return 1;
    }
    MoveObject(tor1,2304.025391, -1649.000854, 14.593271, 3.5);
    return 1;
    }



    if (strcmp(cmdtext, "/close", true)==0)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    if(strcmp(name, "dontkillme", true)) return SendClientMessage(playerid, 0x33AA33AA,"Du hast hier keinen Zutritt");
    if(!PlayerToPoint(15.0, playerid, 1588.89,-1638.3,15.29))
    {
    return 1;
    }
    MoveObject(tor1,2304.025391, -1649.000854, 14.593271, 3.5);
    return 1;
    }
    }
    return 0;
    }

  • ich musste bei beiden das return 1 wegmachen aber jetz hab ich noch die 2 fehler


    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(30) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(44) : error 004: function "PlayerToPoint" is not implemented
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.



    #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);


    new tor1;


    public OnFilterScriptInit()
    {
    tor1 = CreateObject(971, 2299.667480, -1649.000854, 14.593271, 0.0000, 0.0000, 0.0000);
    return 1;
    }
    public OnFilterScriptExit()
    {
    return 1;
    }


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/open", true)==0)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    if(strcmp(name, "dontkillme", true)) return SendClientMessage(playerid, 0x33AA33AA,"Du hast hier keinen Zutritt");
    if(!PlayerToPoint(15.0, playerid, 1588.89,-1638.3,15.29))
    {
    return 1;
    }
    MoveObject(tor1,2304.025391, -1649.000854, 14.593271, 3.5);
    return 1;
    }



    if (strcmp(cmdtext, "/close", true)==0)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    if(strcmp(name, "dontkillme", true)) return SendClientMessage(playerid, 0x33AA33AA,"Du hast hier keinen Zutritt");
    if(!PlayerToPoint(15.0, playerid, 1588.89,-1638.3,15.29))
    {
    MoveObject(tor1,2304.025391, -1649.000854, 14.593271, 3.5);
    return 1;
    }
    }
    return 0;
    }

  • Probiers mal damit:


    if (strcmp(cmdtext, "/open", true)==0)
    {
    if(!PlayerToPoint(15.0, playerid, 2304.025391, -1649.000854, 14.593271))
    {// Jail spot
    SendClientMessage(playerid, COLOR_GREY, " You are not near the Gate, can't open !");
    return 1;
    }
    MoveObject(tor1,2304.025391, -1649.000854, 14.593271, 3.5);//ZU
    }
    return 1;
    }


    Dass gleiche dann auch bei /close nur andere coors

  • C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(27) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(29) : error 017: undefined symbol "COLOR_GREY"
    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(38) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(40) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(43) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(47) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(50) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    7 Errors.


    haha xDDD

  • #include <a_samp>


    #pragma tabsize 0
    #define COLOR_YELLOW 0xFFFF00AA
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);


    new tor1;


    public OnFilterScriptInit()
    {
    tor1 = CreateObject(971, 2299.667480, -1649.000854, 14.593271, 0.0000, 0.0000, 0.0000);
    return 1;
    }
    public OnFilterScriptExit()
    {
    return 1;
    }


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/open", true)==0)
    {
    if(!PlayerToPoint(15.0, playerid, 2304.025391, -1649.000854, 14.593271))
    {// Jail spot
    SendClientMessage(playerid, COLOR_GREY, " You are not near the Gate, can't open !");
    return 1;
    }
    MoveObject(tor1,2304.025391, -1649.000854, 14.593271, 3.5);//ZU
    }
    return 1;
    }



    if (strcmp(cmdtext, "/open", true)==0)
    {
    if(!PlayerToPoint(15.0, playerid, 2304.025391, -1649.000854, 14.593271))
    {// Jail spot
    SendClientMessage(playerid, COLOR_GREY, " You are not near the Gate, can't open !");
    return 1;
    }
    MoveObject(tor1,2304.025391, -1649.000854, 14.593271, 3.5);//ZU
    }
    return 1;
    }
    }
    return 0;
    }

  • ich habs nimm dass mal wenn es jetzt nicht geht ejjj dann aber xDxD


    if (strcmp(cmdtext, "/open", true)==0)
    {
    if(!PlayerToPoint(15.0, playerid, 2304.025391, -1649.000854, 14.593271))
    {// Jail spot
    SendClientMessage(playerid, COLOR_GREY, " You are not near the Gate, can't open !");
    return 1;
    }
    MoveObject(tor1,2304.025391, -1649.000854, 14.593271, 3.5);
    return 1;
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(27) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(38) : error 004: function "PlayerToPoint" is not implemented
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    was das is weis ich jetz aber net xDD

  • Lass dir von jemanden der die PlayerToPoint Funktion hat diese geben und füg die im Script ein.

    Intel Xeon W3690 Hexacore @ 4.5 GHz - 48GB Triple Channel DDR3 - GeForce RTX 2070 Super - Asus P6T Deluxe V1 @ P6T WS Pro BIOS

    Mainboard 12 Jahre, CPU 10 Jahre alt - old but gold!

  • Also wenn ich in der suche PlayerToPoint eingebe ist das der siebte Treffer :/

    Intel Xeon W3690 Hexacore @ 4.5 GHz - 48GB Triple Channel DDR3 - GeForce RTX 2070 Super - Asus P6T Deluxe V1 @ P6T WS Pro BIOS

    Mainboard 12 Jahre, CPU 10 Jahre alt - old but gold!

  • jo sorry, mein fehler ich hab echt gesucht, wohl schreibfehler drin gehabt...


    naja, kann mir das jetz jemand umbauen damit es nicht den nickanem im script nimmt [dontkillme]


    sondern ein bestimmtes wort zB


    haus1
    haus2
    haus3


    das ein spieler in seine datei auf dem server reinbekommt!