IsPlayerInRangeOfPoint - Fehler

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
  • ha also ich hab mal nen /bankmenu befehl gemacht und der soll nur gehen, wenn man an ATM's ist. Also habe ich einen stock geschrieben, nur leider geht das nicht :s
    Pls help :)


    stock IsPlayerAtBankPoint(playerid)
    {
    IsPlayerInRangeOfPoint(playerid,10,2315.2146,-7.2668,26.7422); // Bankinterior
    IsPlayerInRangeOfPoint(playerid,10,1193.30004883,-916.50000000,42.79999924); // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,1155.40002441,-1464.19995117,15.39999962); // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,1539.19995117,-1615.59997559,13.19999981); // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,1367.19995117,-1275.30004883,13.19999981); // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,-2020.00000000,-102.00000000,34.79999924); // Bankautomat
    return 1;
    }


    MfG
    Cr4sh

    Mit freundlichen Grüßen,
    Cr4sh


    Einmal editiert, zuletzt von Cr4sh ()

  • stock IsPlayerAtBankPoint(playerid)
    {
    IsPlayerInRangeOfPoint(playerid,10,2315.2146,-7.2668,26.7422) return 1; // Bankinterior
    IsPlayerInRangeOfPoint(playerid,10,1193.30004883,-916.50000000,42.79999924) return 1; // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,1155.40002441,-1464.19995117,15.39999962) return 1; // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,1539.19995117,-1615.59997559,13.19999981) return 1; // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,1367.19995117,-1275.30004883,13.19999981) return 1; // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,-2020.00000000,-102.00000000,34.79999924) return 1; // Bankautomat
    return 0;
    }

  • Jo danke jetzt gehts :)


    edit: oder auch nicht :s


    jetziger stock:


    stock IsPlayerAtBankPoint(playerid)
    {
    IsPlayerInRangeOfPoint(playerid,10,2315.2146,-7.2668,26.7422)return 1; // Bankinterior
    IsPlayerInRangeOfPoint(playerid,10,1193.30004883,-916.50000000,42.79999924)return 1; // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,1155.40002441,-1464.19995117,15.39999962)return 1; // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,1539.19995117,-1615.59997559,13.19999981)return 1; // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,1367.19995117,-1275.30004883,13.19999981)return 1; // Bankautomat
    IsPlayerInRangeOfPoint(playerid,10,-2020.00000000,-102.00000000,34.79999924)return 1; // Bankautomat
    return 0;
    }


    und die fehler ( ?( ) :


    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2426) : error 001: expected token: ";", but found "return"
    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2427) : warning 225: unreachable code
    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2427) : error 001: expected token: ";", but found "return"
    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2428 ) : warning 225: unreachable code
    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2428 ) : error 001: expected token: ";", but found "return"
    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2429) : warning 225: unreachable code
    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2429) : error 001: expected token: ";", but found "return"
    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2430) : warning 225: unreachable code
    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2430) : error 001: expected token: ";", but found "return"
    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2431) : warning 225: unreachable code
    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2431) : error 001: expected token: ";", but found "return"
    G:\Nico\Eigene Dokumente\GTA\SAMP Server\gamemodes\testneu.pwn(2432) : warning 225: unreachable code

    Mit freundlichen Grüßen,
    Cr4sh


  • stock IsPlayerAtBankPoint(playerid)
    {
    if(IsPlayerInRangeOfPoint(playerid,10,2315.2146,-7.2668,26.7422))return 1; // Bankinterior
    if(IsPlayerInRangeOfPoint(playerid,10,1193.30004883,-916.50000000,42.79999924))return 1; // Bankautomat
    if(IsPlayerInRangeOfPoint(playerid,10,1155.40002441,-1464.19995117,15.39999962))return 1; // Bankautomat
    if(IsPlayerInRangeOfPoint(playerid,10,1539.19995117,-1615.59997559,13.19999981))return 1; // Bankautomat
    if(IsPlayerInRangeOfPoint(playerid,10,1367.19995117,-1275.30004883,13.19999981))return 1; // Bankautomat
    if(IsPlayerInRangeOfPoint(playerid,10,-2020.00000000,-102.00000000,34.79999924))return 1; // Bankautomat
    return 0;
    }

    Kalcor: "... it makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."