Problem mit Eingang/Ausgang

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

  • else if(IsPlayerInRangeOfPoint(playerid,4.0,811.4277,-1616.1138,13.5469) && SetPlayerVirtualWorld(playerid, 1))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && SetPlayerVirtualWorld(playerid, 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,811.4277,-1616.1138,13.5469);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,1199.4064,-919.3890,43.1128) && SetPlayerVirtualWorld(playerid, 2))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && SetPlayerVirtualWorld(playerid, 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,1199.4064,-919.3890,43.1128);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,2471.7610,2034.2963,11.0625) && SetPlayerVirtualWorld(playerid, 3))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && SetPlayerVirtualWorld(playerid, 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,2471.7610,2034.2963,11.0625);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,2366.0754,2071.2556,10.8203) && SetPlayerVirtualWorld(playerid, 4))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && SetPlayerVirtualWorld(playerid, 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,2366.0754,2071.2556,10.8203);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,2170.4055,2795.6697,10.8203) && SetPlayerVirtualWorld(playerid, 5))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && SetPlayerVirtualWorld(playerid, 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,2170.4055,2795.6697,10.8203);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,1872.5800,2071.7961,11.0625) && SetPlayerVirtualWorld(playerid, 6))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && SetPlayerVirtualWorld(playerid, 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,1872.5800,2071.7961,11.0625);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,-2356.3796,1008.1703,50.8984) && SetPlayerVirtualWorld(playerid, 7))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && SetPlayerVirtualWorld(playerid, 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,-2356.3796,1008.1703,50.8984);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,-1912.0579,828.1326,35.2021) && SetPlayerVirtualWorld(playerid, 8))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && SetPlayerVirtualWorld(playerid, 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,-1912.0579,828.1326,35.2021);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,2336.4768,-166.8129,35.5547) && SetPlayerVirtualWorld(playerid, 9))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && SetPlayerVirtualWorld(playerid, 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,2336.4768,-166.8129,35.5547);
    SetPlayerInterior(playerid, 0);


    }


    Habe ein Problem werde immer an dem gleichen gespawnt egal wo ich raus gehe... ?

  • Habe ein Problem werde immer an dem gleichen gespawnt egal wo ich raus gehe... ?

    Ja, das liegt an deiner && SetPlayerVirtualWorld(playerid, 0)...das ist falsch :)


    Du willst es in der Abfrage nicht setzen, sondern Abfragen an welcher Position er sich befindet.


    Also musst du immer z.B.


    && GetPlayerVirtualWorld(playerid) == 0


    verwenden.


    Je nach Weltid halt anpassen :)

    ast2ufdyxkb1.png


    Leute, lernt scripten und versucht mal lieber etwas selber zu schreiben, als es aus einem GF zu kopieren. :S


  • else if(IsPlayerInRangeOfPoint(playerid,4.0,811.4277,-1616.1138,13.5469) && GetPlayerVirtualWorld(playerid) == 1))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && GetPlayerVirtualWorld(playerid) == 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,811.4277,-1616.1138,13.5469);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,1199.4064,-919.3890,43.1128) && GetPlayerVirtualWorld(playerid) == 2))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && GetPlayerVirtualWorld(playerid) == 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,1199.4064,-919.3890,43.1128);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,2471.7610,2034.2963,11.0625) && GetPlayerVirtualWorld(playerid) == 3))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && GetPlayerVirtualWorld(playerid) == 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,2471.7610,2034.2963,11.0625);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,2366.0754,2071.2556,10.8203) && GetPlayerVirtualWorld(playerid) == 4))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && GetPlayerVirtualWorld(playerid) == 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,2366.0754,2071.2556,10.8203);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,2170.4055,2795.6697,10.8203) && GetPlayerVirtualWorld(playerid) == 5))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && GetPlayerVirtualWorld(playerid) == 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,2170.4055,2795.6697,10.8203);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,1872.5800,2071.7961,11.0625) && GetPlayerVirtualWorld(playerid) == 6))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && GetPlayerVirtualWorld(playerid) == 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,1872.5800,2071.7961,11.0625);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,-2356.3796,1008.1703,50.8984) && GetPlayerVirtualWorld(playerid) == 7))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && GetPlayerVirtualWorld(playerid) == 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,-2356.3796,1008.1703,50.8984);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,-1912.0579,828.1326,35.2021) && GetPlayerVirtualWorld(playerid) == 8))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && GetPlayerVirtualWorld(playerid) == 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,-1912.0579,828.1326,35.2021);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,2336.4768,-166.8129,35.5547) && GetPlayerVirtualWorld(playerid) == 9))//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && GetPlayerVirtualWorld(playerid) == 0))//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,2336.4768,-166.8129,35.5547);
    SetPlayerInterior(playerid, 0);
    }


    Habe das jetzt so gemacht passt?

  • Nun, du musst ja auch die Weltid und die Interior abchecken :D


    Also du musst jeweils wissen..in welcher Interiorid & Weltid der Spieler sich gerade befindet..


    Z,b. wenn du ihn hier hin setzt:



    SetPlayerPos(playerid,363.4249, -74.8294, 1001.4486);
    SetPlayerInterior(playerid, 10);
    SetPlayerVirtualWorld(playerid,2);


    Lautet die Abfrage um zu überprüfen ob er da ist:


    if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249, -74.8294, 1001.4486) && GetPlayerInterior(playerid) == 10 && GetPlayerVirtualWorld(playerid) == 2)


    Musst schon mit ein bisschen mehr gewissen deinen Code schreiben...deshalb nutzt man in solchen Fällen auch Arrays, damit das übersichtlicher ist ^^

    ast2ufdyxkb1.png


    Leute, lernt scripten und versucht mal lieber etwas selber zu schreiben, als es aus einem GF zu kopieren. :S


  • C:\Users\-\Desktop\GTA Scripts\German\gamemodes\GER.pwn(7671) : error 029: invalid expression, assumed zero
    C:\Users\-\Desktop\GTA Scripts\German \gamemodes\GER.pwn(7671) : warning 215: expression has no effect
    C:\Users\-\Desktop\GTA Scripts\German\gamemodes\GER.pwn(7671) : error 001: expected token: ";", but found "if"
    C:\Users\-\Desktop\GTA Scripts\German \gamemodes\GER.pwn(7671) : error 029: invalid expression, assumed zero
    C:\Users\-\Desktop\GTA Scripts\German\gamemodes\GER.pwn(7671) : fatal error 107: too many error messages on one line




    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249,-74.8294,1001.4486) && GetPlayerVirtualWorld(playerid) == 0))//Burger Shot Ausgang //7671
    {
    SetPlayerPos(playerid,811.4277,-1616.1138,13.5469);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }



    warum hier fehler und bei den anderen nicht ;(;(;(


    Komisch...

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen

  • else if(IsPlayerInRangeOfPoint(playerid,4.0,811.4277,-1616.1138,13.5469) && GetPlayerVirtualWorld(playerid) == 1)//Burger Shot Eingang
    {
    SetPlayerPos(playerid,363.4249,-74.8294,1001.4486);
    SetPlayerInterior(playerid,10);
    SetPlayerVirtualWorld(playerid,1);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,363.4249,-74.8294,1001.4486) && GetPlayerVirtualWorld(playerid) == 0)//Burger Shot Ausgang
    {
    SetPlayerPos(playerid,811.4277,-1616.1138,13.5469);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }



    das ist doch richtig oder nicht?!

  • Nein...beim ersten befindest du dich doch in der Virtuellen Welt 0.


    Und bei der anderen in der Virtuellen Welt 1...


    Also genau einmal rumdrehen:


    ast2ufdyxkb1.png


    Leute, lernt scripten und versucht mal lieber etwas selber zu schreiben, als es aus einem GF zu kopieren. :S