[Help]Tore

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 ich habe ein problem mit toren, ich bin ein anfänger also wenn möglich wäre bisschen erklären



    das sind die errors ???


    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1907) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1911) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1923) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1927) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1931) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1935) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1939) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1943) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1947) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1959) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1963) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1967) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1971) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1975) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1987) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1991) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(1995) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(2007) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(2011) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(4020) : error 004: function "CrimInRange" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(4243) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(4855) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(4932) : error 004: function "ProxDetector" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(5622) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(5628) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Dimitrij\Desktop\[SERVER] Perfect Roleplays\gamemodes\prs.pwn(5634) : error 004: function "PlayerToPoint" is not implemented


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.

    und das hier hab ich gemacht Help mee


    if (strcmp(cmdtext, "/landeplatz", true)==0)
    {
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)


    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Das Tor schließt sich Alleine");
    MoveObject(Landeplatz,1553.140625, -1356.905273, 330.170959, 3.5);
    SetTimer("Landeplatz1", 9000, 0);
    }

  • Du brauchst auch die PlayerToPoint-Funktion.
    Bau das hier irgendwo (außerhalb einer "publics") ein:


    PlayerToPoint(Float:radius, playerid, Float:X, Float:Y, Float:Z)
    {
    new Float:oldpos[3], Float:temppos[3];
    GetPlayerPos(playerid, oldpos[0], oldpos[1], oldpos[2]);
    temppos[0] = (oldpos[0] -X);
    temppos[1] = (oldpos[1] -Y);
    temppos[2] = (oldpos[2] -Z);
    if(((temppos[0] < radius) && (temppos[0] > -radius)) && ((temppos[1] < radius) && (temppos[1] > -radius)) && ((temppos[2] < radius) && (temppos[2] > -radius)))
    {
    return true;
    }
    return false;
    }


    Hoffe ich konnte helfen...


    Mit freundlichen Grüßen,
    Mr_Hero

  • oben
    new lspd;
    forward lspd-tor();



    in OnGamemodeInit


    lspd = CreateObject(975, 1588.947144, -1638.050171, 14.106651, 0.0000, 0.0000, 0.0000);




    dann in OnPlayerCommandText



    if (strcmp(cmdtext, "/pdopen", true)==0)
    {
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Das Tor schließt sich Alleine");
    MoveObject(lspd,/*der code wo es auf gehn soll in meinem fall:*/1597.010986, -1638.080444, 14.103151,/*die geschwindigkeit*/ 3.5);
    SetTimer("lspd-tor", 7000, 0); //geht nach 7 sekunden von alleine zu//
    }



    Neuer Public

    public pdzu()
    {
    MoveObject(lspd,1588.947144, -1638.050171, 14.106651,4);
    return 1;
    }



    MfG 8) [PRT]The_Gamer

  • naja so habs ich in meinem Gamemode und es Funktioniert eibanfrei