Beiträge von TriXxoR


    if (strcmp("/buy32", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, " Du bist nicht am Richtigen Ort");
    return 1;
    }
    if(PlayerToPoint(4.0, playerid,1536.6609,-1645.1080,13.5469 ))
    {
    if(GetPlayerMoney(playerid) > 3499)
    {
    GivePlayerWeapon(playerid, 32,150);
    GivePlayerMoney(playerid, -3500);
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE, "Du Hast nicht genügend geld o.o");
    }
    return 1;
    }


    So müsste es eigentlich gehen

    Hi leute ich habe hier nen FS für ienen aufzug
    #include <a_samp>


    #include <a_samp>


    #pragma tabsize 0
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    new Tor_eins;
    new Tor_zwei;


    public OnFilterScriptInit()
    {
    Tor_eins = CreateObject(971, 1565.386230, -1630.638306, 15.927746, 180.3774, 0.0000, 0.0000); //zu
    Tor_zwei = CreateObject(971, 1565.381592, -1634.159668, 12.302801, 269.7592, 0.0000, 0.0000); //zu


    CreateObject(971, 1560.944824, -1634.151001, 16.777733, 0.0000, 90.2408, 89.3814);
    CreateObject(971, 1560.936035, -1634.130005, 25.613226, 0.0000, 90.2408, 89.3814);
    CreateObject(971, 1569.739014, -1634.161133, 16.777733, 0.0000, 90.2408, 89.3814);
    CreateObject(971, 1569.748535, -1634.131592, 25.627598, 0.0000, 90.2408, 89.3814);
    CreateObject(971, 1565.372681, -1630.572632, 23.077637, 179.5180, 0.0000, 0.0000);
    CreateObject(971, 1565.386597, -1630.578125, 26.477585, 179.5180, 0.0000, 0.0000);


    print("\n--------------------------------------");
    print(" pdgerage Filterscript by BoNeS");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/zu", true) == 0){
    MoveObject(Tor_eins,1565.386230, -1630.638306, 15.927746,4);



    return 1;
    }
    if (strcmp(cmdtext, "/auf", true) == 0){
    MoveObject(Tor_eins,1565.372681, -1630.572632, 23.077637,4);


    return 1;
    }


    //Tor 2---------------------//


    if (strcmp(cmdtext, "/unten", true) == 0){
    MoveObject(Tor_zwei,1565.381592, -1634.159668, 12.302801,4);



    return 1;
    }
    if (strcmp(cmdtext, "/oben", true) == 0){
    MoveObject(Tor_zwei,1565.381592, -1634.159668, 27.302572,4);



    return 1;
    }
    return 0;
    }


    Jetzt will ich dass


    Wenn man /up eingibt das dann der befehl /zu ausgeführt wird und ca 5 sek danach der befehl oben und dann wenn ich /down eingeb das dann der befelh /unten und 5 sek danach /auf ausgeführt wird.


    kann mir wer erklären wie ichs mache ?

    C:\DOKUME~1\TriXxoR\Desktop\SAMP02~1.WIN\GAMEMO~1\gf.pwn(7436) : error 017: undefined symbol "playerid"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    Immer diese Fehler C:\DOKUME~1\TriXxoR\Desktop\SAMP02~1.WIN\GAMEMO~1\gf.pwn(2087) : error 010: invalid function or declaration
    C:\DOKUME~1\TriXxoR\Desktop\SAMP02~1.WIN\GAMEMO~1\gf.pwn(27480) : warning 203: symbol is never used: "Textdraw1"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    Wenn das lesen schwer fällt.


    new CarSpawns[182][eCars] = {



    {492,1174.6599,-922.1939,43.1189,276.8927},
    {507,1363.0210,-1288.3124,13.2839,180.1453},
    {545,1363.2723,-1260.8229,13.0954,179.5841},
    {540,2383.5627,-1927.9207,13.2436,359.6281},
    {482,-2635.0933,1377.1693,6.8692,180.6415},
    {547,-2513.1277,1209.6135,37.1506,270.2610},
    {550,2396.6899,-1966.8123,13.2793,271.6838},
    {551,2391.1135,-1500.6554,23.6355,269.7709},
    {560,-2273.8679,921.3550,66.3095,0.6336},
    {405,-2153.0779,953.6602,79.7271,180.3209},
    {554,334.3586,-1789.3143,4.6717,178.7722},
    {426,343.8039,-1808.9827,4.3090,181.8368},
    {445,-2129.2915,787.6183,69.3346,87.1812},
    {492,646.4998,-1771.6411,13.2905,348.7706},
    {507,-2151.9524,395.9857,34.9395,180.7696},//150
    {545,-2078.8027,265.4074,35.1672,268.0607},
    {540,-2034.8334,178.8471,28.5682,269.9615},
    {482,438.9431,-1625.4088,25.7951,0.1850},
    {547,453.3896,-1494.3240,30.7917,7.7513},
    {550,487.6469,-1516.2312,20.0235,185.5384},
    {551,300.5775,-1490.8882,24.3748,235.1359},
    {560,-2180.1323,41.8542,35.1717,269.9866},
    {492,1479.9131,-1737.8813,13.2418,269.5805},
    {507,1508.1047,-1737.7089,13.2418,270.0250},
    {545,1618.0411,-1891.1044,13.3278,0.3364},
    {540,1623.7291,-1892.7234,13.3307,180.0126},
    {482,-2079.6389,-2303.7983,30.3466,322.7155},
    {547,1743.5837,-1844.6041,13.3557,180.3384},
    {550,1838.1904,-1871.3842,13.1703,358.5452},
    {551,-1557.8568,-2741.5632,48.3481,144.5150},
    {560,1777.1376,-1910.0310,13.1681,91.0725},
    {566,-16.7753,-2503.6228,36.4593,121.7103},
    {566,1981.0780,-1986.3513,13.3275,2.1479},
    {405,218.4485,-173.3024,1.3809,90.0117},
    {554,199.5586,-155.4912,1.3827,0.3471},
    {426,1984.7471,-2066.7776,13.1625,359.7226},
    {445,1938.0565,-2086.8459,13.3429,268.3414},
    {492,318.4840,-86.0588,2.0804,90.9324},
    {507,-113.9556,-39.4382,2.9209,164.0464},
    {545,115.3321,-217.1147,1.3028,89.7911},
    {540,1748.0751,-2084.2090,13.3324,0.4337},
    {482,1560.5026,-2260.5457,13.3258,268.7398},
    {547,1461.6943,-1505.1688,13.2541,356.9007},
    {550,1426.4930,-1402.3170,13.1800,181.0290},
    {551,1435.0645,-1325.6835,13.2580,270.9400},
    {560,1513.9486,-1272.5691,14.2685,181.0697},
    {566,1583.7561,-1338.7435,16.1896,359.8619},
    {405,-2760.5156,-312.1838,7.1557,3.8747},//DERBY
    {554,-2766.6875,-281.2887,7.1613,180.1256},//DERBY
    {426,1430.2316,-1054.8555,22.8693,359.3625},
    {445,1574.1168,-1036.7643,23.6151,145.6786},
    //{492,1617.6676,-1009.8663,23.6052,356.8697},
    {507,1645.3188,-1036.5238,23.6027,0.7258},
    {545,485.9422,-1467.4543,18.3154,157.6833},//DERBY
    {540,1770.4874,-1060.9886,23.6658,179.2750},
    {482,-2781.4741,-281.6054,7.1515,181.0279},//DERBY
    {547,1653.1766,-1134.8994,23.6110,178.6835},
    {550,1617.3746,-1132.8293,23.6117,91.7300},
    {551,1790.0190,-1292.9065,13.2653,267.2964},
    {560,1754.3009,-1476.8170,13.2402,269.6320},
    {554,2003.3417,-1121.4993,26.3879,357.4926},
    {426,2084.2334,-1170.0986,24.2042,91.8975},
    {492,2229.2278,-1345.4033,23.6892,93.3009},
    {507,2332.5684,-1362.4845,23.7297,358.1198},
    {545,2384.1567,-1275.6326,23.9198,101.6528},
    {540,2432.3149,-1226.0785,24.9941,17.9805},
    {482,2426.9612,-1224.4158,25.0000,202.7159},
    {547,2438.4309,-1321.6925,24.1225,269.7535},
    {551,2612.9702,-1262.6970,48.2461,269.4752},
    {560,2659.4529,-1428.4343,30.1790,266.5051},
    {566,2659.7053,-1422.6743,30.1714,89.8159},
    {405,2485.5313,-1556.1823,23.7478,178.8338},
    {554,2478.7664,-1555.7006,23.7226,183.6043},
    {426,2605.3967,-1365.8829,34.6461,359.9891},
    {445,2754.7136,-1373.0253,40.1154,91.4169},
    {492,2717.3662,-1468.0308,30.0894,1.0298},
    {507,2816.7195,-1449.4285,15.9549,268.9106},
    {545,2816.9937,-1441.5880,15.9544,90.7779},
    {540,2681.9016,-1673.3879,9.1290,0.5605},
    {482,2442.5845,-1642.7507,13.1644,180.3454},
    {547,2361.3120,-1674.6146,13.2505,357.4959},
    {550,2298.3535,-1633.7542,14.3849,80.8107},
    {551,2297.9077,-1639.9464,14.4352,94.4292},
    {560,2255.4045,-1664.5736,15.1304,74.6898},
    {566,2234.1057,-1726.9386,13.1665,271.7536},
    {405,2319.3833,-1716.6823,13.2518,359.8540},
    {554,2474.5105,-1755.9194,13.2522,270.5967},
    {426,2501.8213,-1754.2794,13.1208,176.4916}, //= 255
    {445,2489.1560,-1952.6886,13.1366,178.1629},
    {492,2495.4326,-1953.2922,13.1299,356.5514},
    {507,2306.7168,-1989.6796,13.2639,184.8385},
    {482,2056.1807,-1904.7751,13.2502,2.2910},
    {550,2064.9871,-1919.1674,13.2504,180.8575},
    {551,1886.4812,-2022.9338,13.0964,179.4265},
    {560,1824.8976,-2019.8374,13.0875,272.5273},
    {566,1942.1669,-1862.6425,13.2679,264.5590},
    {405,1923.9409,-1795.5616,13.0877,90.0886},
    {554,1807.0905,-1571.7120,13.1659,125.1048},
    {426,1809.9016,-1676.0603,13.2422,180.7589},
    {445,1809.6266,-1653.3402,13.2365,180.6530},
    {492,1809.7056,-1660.3019,13.2380,180.6262},
    {507,1978.4003,-1675.0157,15.6741,269.7336},
    {545,1974.8230,-1693.5488,15.6741,92.1162},
    {540,1929.2253,-1584.6954,13.2700,185.5542},
    {482,1731.9725,-1590.8959,13.1630,77.7249},
    {547,1721.5776,-1589.2834,13.1526,80.9057},
    {550,1695.1428,-1519.2667,13.1671,0.7121},
    {551,1694.7080,-1501.7454,13.1675,357.8150}
    };


    Die musst du rauslöschen guck einfach unter new CarSpawn


    Dann erhälst du sowas beim Compilen !
    C:\DOKUME~1\TriXxoR\Desktop\THEGOD~1\gamemode\gf.pwn(7886) : error 017: undefined symbol "CarSpawns"
    C:\DOKUME~1\TriXxoR\Desktop\THEGOD~1\gamemode\gf.pwn(7886) : warning 215: expression has no effect
    C:\DOKUME~1\TriXxoR\Desktop\THEGOD~1\gamemode\gf.pwn(7886) : error 001: expected token: ";", but found "]"
    C:\DOKUME~1\TriXxoR\Desktop\THEGOD~1\gamemode\gf.pwn(7886) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\TriXxoR\Desktop\THEGOD~1\gamemode\gf.pwn(7886) : fatal error 107: too many error messages on one line


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



    4 Errors.


    Dann machste dieses weg


    public AddCar(carcoords)
    {
    new randcol = random(126);
    new randcol2 = 1;
    if (rccounter == 14)
    {
    rccounter = 0;
    }
    AddStaticVehicleEx(carselect[rccounter], CarSpawns[carcoords][pos_x], CarSpawns[carcoords][pos_y], CarSpawns[carcoords][pos_z], CarSpawns[carcoords][z_angle], randcol, randcol2, 60000);
    rccounter++;
    return 1;
    }


    Nun kommt der hier
    C:\DOKUME~1\TriXxoR\Desktop\THEGOD~1\gamemode\gf.pwn(6748) : error 004: function "AddCar" is not implemented
    C:\DOKUME~1\TriXxoR\Desktop\THEGOD~1\gamemode\gf.pwn(26042) : warning 203: symbol is never used: "rccounter"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.


    Aus diesen teil
    //for(new i = 0; i < sizeof(CarSpawns); i++)
    for(new i = 0; i < 165; i++)
    {
    AddCar(i);
    }
    CarInit();
    return 1;
    }


    löscht du einfach
    AddCar(i);


    Dann sieht das so aus
    for(new i = 0; i < 165; i++)
    {
    }
    CarInit();
    return 1;
    }


    Dann noch schnell
    unter new new rccounter = 0;


    Löschen


    Ich hoffe ich habe geholfen