Fahrzeug 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
  • Warum kann keiner in die Flugzeuge/helis einsteigen
    armycars[0]=CreateVehicle(520,278.0000000,1956.0000000,18.6000004,265.9954834,102,102,-1);
    armycars[1]=CreateVehicle(520,275.5000000,1989.1999512,18.6000004,265.9954834,102,102,-1);
    armycars[2]=CreateVehicle(520,277.2000122,2023.4000244,18.6000004,265.9954834,102,102,-1);
    armycars[3]=CreateVehicle(520,343.1000061,1974.5000000,18.6000004,87.9954834,102,102,-1);
    armycars[4]=CreateVehicle(520,344.1000061,1940.6999512,18.6000004,87.9949951,102,102,-1);
    armycars[5]=CreateVehicle(432,344.1000061,1907.3000488,17.7000008,90.0000000,102,102,-1);
    armycars[29]=CreateVehicle(432,185.6000061,1930.4000244,17.8999996,179.9999390,102,102,-1);


    if(newstate==PLAYER_STATE_DRIVER)
    {
    for(new i=0; i<sizeof(armycars); i++)
    {
    if(GetPlayerVehicleID(playerid)==armycars[i])
    {
    if(GetPVarInt(playerid,"Fraktion")!=2)
    {
    RemovePlayerFromVehicle(playerid);
    }
    }
    }
    }

  • hoffe das erklärt alles ;)
    armycars[0]=CreateVehicle(520,278.0000000,1956.0000000,18.6000004,265.9954834,102,102,-1);
    armycars[1]=CreateVehicle(520,275.5000000,1989.1999512,18.6000004,265.9954834,102,102,-1);
    armycars[2]=CreateVehicle(520,277.2000122,2023.4000244,18.6000004,265.9954834,102,102,-1);
    armycars[3]=CreateVehicle(520,343.1000061,1974.5000000,18.6000004,87.9954834,102,102,-1);
    armycars[4]=CreateVehicle(520,344.1000061,1940.6999512,18.6000004,87.9949951,102,102,-1);
    armycars[5]=CreateVehicle(432,344.1000061,1907.3000488,17.7000008,90.0000000,102,102,-1);
    armycars[29]=CreateVehicle(432,185.6000061,1930.4000244,17.8999996,179.9999390,102,102,-1);
    SetVehicleNumberPlate(armycars[6]=CreateVehicle(497,195.6000061,1930.4000244,24.1000004,179.9999390,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[7]=CreateVehicle(497,205.6000061,1931.4000244,24.1000004,179.9945068,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[8]=CreateVehicle(497,217.6000061,1930.4000244,24.1000004,179.9945068,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[9]=CreateVehicle(427,208.6000061,1874.3000488,17.8999996,38.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[10]=CreateVehicle(427,219.1999969,1873.9000244,17.8999996,328.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[11]=CreateVehicle(433,199.6999969,1873.9000244,18.2000008,0.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[12]=CreateVehicle(433,227.0000000,1874.5999756,18.2000008,0.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[13]=CreateVehicle(560,235.0000000,1880.9000244,17.3999996,90.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[14]=CreateVehicle(596,192.3000031,1899.1999512,17.3999996,272.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[15]=CreateVehicle(596,192.3999939,1896.3000488,17.3999996,271.9995117,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[16]=CreateVehicle(596,192.6000061,1893.5999756,17.3999996,271.9995117,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[17]=CreateVehicle(596,192.6999969,1890.6999512,17.3999996,271.9995117,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[18]=CreateVehicle(596,192.6999969,1887.4000244,17.3999996,271.9995117,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[19]=CreateVehicle(596,192.8000031,1884.1999512,17.3999996,271.9995117,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[20]=CreateVehicle(560,235.0000000,1884.0999756,17.3999996,90.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[21]=CreateVehicle(560,235.0000000,1887.3000488,17.3999996,90.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[22]=CreateVehicle(560,234.8999939,1890.3000488,17.3999996,90.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[23]=CreateVehicle(560,234.8000031,1893.5999756,17.3999996,90.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[24]=CreateVehicle(560,234.8000031,1896.9000244,17.3999996,90.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[25]=CreateVehicle(429,234.8000031,1900.3000488,17.3999996,90.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[26]=CreateVehicle(429,234.8999939,1903.8000488,17.3999996,90.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[27]=CreateVehicle(415,235.1999969,1925.3000488,17.5000000,182.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[28]=CreateVehicle(415,238.3999939,1925.0999756,17.5000000,181.9995117,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[30]=CreateVehicle(468,190.1999969,1921.4000244,17.3999996,180.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[31]=CreateVehicle(468,191.1999969,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[32]=CreateVehicle(468,192.1000061,1921.1999512,17.3999996,180.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[33]=CreateVehicle(468,193.1000061,1921.1999512,17.3999996,180.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[34]=CreateVehicle(468,194.0000000,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[35]=CreateVehicle(468,194.8000031,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[36]=CreateVehicle(468,195.6999969,1921.0999756,17.3999996,180.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[37]=CreateVehicle(468,196.6000061,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[38]=CreateVehicle(470,199.5000000,1920.5000000,17.7999992,179.9999390,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[39]=CreateVehicle(470,202.6999969,1920.5000000,17.7999992,179.9945068,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[40]=CreateVehicle(470,206.3999939,1920.5999756,17.7999992,179.9945068,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[41]=CreateVehicle(470,210.0000000,1920.6999512,17.7999992,179.9945068,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[42]=CreateVehicle(470,213.6999969,1920.5999756,17.7999992,179.9945068,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[43]=CreateVehicle(470,217.6999969,1920.8000488,17.7999992,179.9945068,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[44]=CreateVehicle(470,221.6999969,1920.5999756,17.7999992,179.9945068,102,102,-1),"Army");
    SetVehicleNumberPlate(armycars[45]=CreateVehicle(425,237.0000000,1991.8000488,18.5000000,268.0000000,102,102,-1),"Army"); //Hunter
    SetVehicleNumberPlate(armycars[46]=CreateVehicle(425,234.5000000,2020.3000488,20.1000004,267.9949951,102,102,-1),"Army"); //Hunter
    SetVehicleNumberPlate(armycars[47]=CreateVehicle(425,215.3000031,1967.5000000,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
    SetVehicleNumberPlate(armycars[48]=CreateVehicle(425,216.3000031,1989.3000488,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
    SetVehicleNumberPlate(armycars[49]=CreateVehicle(425,233.1999969,1967.9000244,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
    SetVehicleNumberPlate(armycars[50]=CreateVehicle(425,213.8999939,2020.0999756,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
    aber hab jetzt ein return 1; hingemacht und jetzt kommt Pawn Compiler funktioniert nicht mehr

  • Warum denn so Umständlich?


    if(newstate==PLAYER_STATE_DRIVER)
    {
    for(new i=0; i<sizeof(armycars); i++)
    {
    if(GetPlayerVehicleID(playerid)==armycars[i])
    {
    if(GetPVarInt(playerid,"Fraktion") == 2)
    {

    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    }
    }
    }
    }

  • schockodonuts version ist kürzer deswegen macht er es so ;)


    versuch es mal so


    >> sPa.M << go, go,Bann me, Bann me

  • 0xFF0000FF dass muss ein HTML code sein wie FFFFFF


    Code
    SendClientMessage(playerid,0x99ff99ff,"Dein Name ist registriert.{FF0000}Logge{FFFFFF} dich mit deinem {FF0000}Passwort{FFFFFF} ein.");


    glaube so willste es haben

    >> sPa.M << go, go,Bann me, Bann me