Hilfe beim Script

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
  • Guten Tag.


    Ich habe 15 Errors in meinen Script. Das Script habe ich von Vinni x3 gekauft und er hat es mir total verbuggt gegeben mit den ganzen Errors....


    Kann mir bitte jemand helfen die 15 Errors zu beseitigen via Teamviewer?

  • Das weiß ich nicht.



    Der Beitrag ist zu kurz. Der Beitrag muss mindestens 15 Zeichen lang sein und 6 Wörter enthalten.

  • C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1250) : warning 202: number of arguments does not match definition
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1338) : warning 219: local variable "string2" shadows a variable at a preceding level
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1545) : warning 219: local variable "string2" shadows a variable at a preceding level
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1553) : warning 219: local variable "string2" shadows a variable at a preceding level
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1727) : warning 219: local variable "sup" shadows a variable at a preceding level
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1727) : warning 219: local variable "string2" shadows a variable at a preceding level
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1730) : warning 202: number of arguments does not match definition
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1743) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1745) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1747) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1751) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1753) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1760) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1762) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1768) : error 021: symbol already defined: "GetPlayerName"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1771) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1773) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1779) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1781) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1786) : error 021: symbol already defined: "sup"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1786) : error 021: symbol already defined: "string2"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1790) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1792) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1798) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1800) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1805) : error 021: symbol already defined: "sup"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1805) : error 021: symbol already defined: "string2"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1809) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1811) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1817) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1819) : error 010: invalid function or declaration
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1824) : error 021: symbol already defined: "sup"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1824) : error 021: symbol already defined: "string2"


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



    26 Errors.

  • Ich kann nicht gut Scripten.....


    Mein Scripter hat mir gesagt er hat die Klammerfehler gefixxed, aber der Rest sind richtige Errors.


  • Schreib lieber die Zeilen hier rein über TV wirds dir keiner machen da TV immer so laggt-.- :D

  • Ich habe jetzt keine Errors mehr... nur noch warnings....


    Was muss ich nun machen??? Kann ich Compilen zu amx oder erst wenn warnings weg sind?

    Einmal editiert, zuletzt von Chefkollo ()

  • Du kannst auch Compilen wenn Warnings da sind ;)


    -Unknown

  • C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(1256) : warning 202: number of arguments does not match definition
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(6792) : warning 202: number of arguments does not match definition
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(7035) : warning 202: number of arguments does not match definition
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(511) : warning 204: symbol is assigned a value that is never used: "cop32"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(574) : warning 204: symbol is assigned a value that is never used: "fc1"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(575) : warning 204: symbol is assigned a value that is never used: "fc2"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(576) : warning 204: symbol is assigned a value that is never used: "fc3"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(577) : warning 204: symbol is assigned a value that is never used: "fc4"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(578) : warning 204: symbol is assigned a value that is never used: "fc5"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(579) : warning 204: symbol is assigned a value that is never used: "fc6"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(580) : warning 204: symbol is assigned a value that is never used: "fc7"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(581) : warning 204: symbol is assigned a value that is never used: "fc8"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(581 -- 7205) : warning 203: symbol is never used: "racecheckpoints"
    C:\Users\lukas\Desktop\SM by Templer\gamemodes\Unser neues Script.pwn(581 -- 7205) : warning 203: symbol is never used: "ret_memcpy"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    14 Warnings.





    Script:


    cop32 = AddStaticVehicle(560,1545.1390,-1684.0367,5.5959,89.0216,0,0); // LSPDCar16
    cop33 = AddStaticVehicle(560,1545.1079,-1688.7744,5.5956,90.9881,0,0); // LSPDCar17


    oamt1 = AddStaticVehicle(525,878.8165,-1256.9967,14.8472,270.0234,1,6); // OamtCar1
    oamt2 = AddStaticVehicle(525,866.3919,-1257.0299,14.7686,270.2438,1,6); // OamtCar2
    oamt3 = AddStaticVehicle(525,849.1146,-1271.7561,14.2927,182.6052,1,6); // OamtCar3
    oamt4 = AddStaticVehicle(525,870.3297,-1293.0114,13.7350,359.0420,1,6); // OamtCar4
    oamt5 = AddStaticVehicle(525,870.2531,-1277.9446,14.3454,359.6803,1,6); // OamtCar5
    oamt6 = AddStaticVehicle(525,870.2800,-1285.4771,14.0319,359.4864,1,6); // OamtCar6
    oamt7 = AddStaticVehicle(525,875.0450,-1270.4001,14.6084,1.2221,1,6); // OamtCar7
    oamt8 = AddStaticVehicle(560,909.8986,-1270.0638,14.3356,0.0758,1,1); // OamtCarLeader8
    oamt9 = AddStaticVehicle(560,906.0386,-1238.7321,15.8616,359.2163,1,1); // OamtCarLeader9
    oamt10 = AddStaticVehicle(560,906.0881,-1231.7992,16.4942,0.4031,1,1); // OamtCarLeader10


    hit1 = AddStaticVehicleEx(411,796.5638,1695.2867,5.0083,270.1533,9,11,-1); // NeuHitmanCar1
    hit2 = AddStaticVehicleEx(411,796.5972,1691.2462,5.0083,270.0649,23,11,-1); // NeuHitmanCar2
    hit3 = AddStaticVehicleEx(411,783.7844,1683.0052,5.0083,182.5726,11,11,-1); // NeuHitmanCar3
    hit4 = AddStaticVehicleEx(521,813.4120,1686.1353,4.8518,94.5698,21,73,-1); // NeuHitmanCar4
    hit4 = AddStaticVehicleEx(521,813.7093,1683.3281,4.8482,90.4300,63,73,-1); // NeuHitmanCar5
    hit5 = AddStaticVehicleEx(560,810.0454,1677.5487,4.9864,1.7270,20,21,-1); // NeuHitmanCar6
    hit6 = AddStaticVehicleEx(500,816.9838,1704.5546,5.3957,351.9020,21,21,-1); // NeuHitmanCar7
    hit7 = AddStaticVehicleEx(470,811.9901,1719.0139,5.3762,319.1956,0,0,-1); // NeuHitmanCar8
    hit8 = AddStaticVehicleEx(470,801.9091,1610.8748,7.5696,88.8729,0,0,-1); // NeuHitmanCar9
    hit9 = AddStaticVehicleEx(400,795.8797,1682.8656,5.3735,359.9406,95,95,-1); // NeuHitmanCar10


    pcar1 = AddStaticVehicleEx(490,1245.9266,-2043.9589,59.9576,269.8451,0,0,-1); // sscar1
    pcar2 = AddStaticVehicleEx(490,1245.9095,-2040.1281,59.9574,271.3145,0,0,-1); // sscar2
    pcar3 = AddStaticVehicleEx(490,1245.5504,-2028.3351,59.9697,270.2820,0,0,-1); // sscar3
    pcar4 = AddStaticVehicleEx(409,1247.0266,-2009.1721,59.5913,269.3946,0,0,-1); // sscar4
    pcar5 = AddStaticVehicleEx(409,1255.8768,-2009.0750,59.3381,269.3568,0,0,-1); // sscar5
    pcar6 = AddStaticVehicleEx(598,1276.6215,-2044.6337,58.7889,88.6738,0,0,-1); // sscar6
    pcar7 = AddStaticVehicleEx(598,1276.6880,-2041.1753,58.7776,90.3771,0,0,-1); // sscar7
    pcar8 = AddStaticVehicleEx(421,1277.0363,-2035.1709,58.8847,89.2520,0,0,-1); // sscar8


    cc1 = AddStaticVehicleEx(560,286.5930,-1155.8553,80.6163,224.7581,35,35,-1); // YakuzaCar1
    cc2 = AddStaticVehicleEx(560,282.4786,-1159.8508,80.6188,224.5355,35,35,-1); // YakuzaCar2
    cc3 = AddStaticVehicleEx(461,305.7031,-1158.8833,80.4941,159.0838,35,35,-1); // YakuzaCar3
    cc4 = AddStaticVehicleEx(461,306.5597,-1160.1272,80.5035,161.9493,35,35,-1); // YakuzaCar4
    cc5 = AddStaticVehicleEx(409,318.9892,-1167.3922,80.7112,133.2077,35,35,-1); // YakuzaCar5


    nc1 = AddStaticVehicleEx(481,1078.4208,-1792.1017,13.2609,272.1920,1,1,-1); // noobcar1
    nc2 = AddStaticVehicleEx(481,1078.3644,-1793.1996,13.2631,270.3785,1,1,-1); // noobcar2
    nc3 = AddStaticVehicleEx(481,1078.4235,-1794.3486,13.2652,269.8982,1,1,-1); // noobcar3
    nc4 = AddStaticVehicleEx(481,1078.5026,-1795.3789,13.2678,270.1259,1,1,-1); // noobcar4
    nc5 = AddStaticVehicleEx(481,1078.4968,-1796.6375,13.2722,271.3115,1,1,-1); // noobcar5


    bc1 = AddStaticVehicleEx(426,1933.7126,-1123.0165,25.8226,180.5243,85,85,-1); // ballascar1
    bc2 = AddStaticVehicleEx(426,1924.5776,-1130.2965,24.7506,90.6527,85,85,-1); // ballascar2
    bc3 = AddStaticVehicleEx(458,1940.2500,-1130.4132,25.2795,88.8440,85,85,-1); // ballascar3
    bc4 = AddStaticVehicleEx(468,1941.0842,-1118.7988,26.1188,145.0185,85,85,-1); // ballascar4
    bc5 = AddStaticVehicleEx(468,1942.6371,-1118.5568,26.1078,144.3561,85,85,-1); // ballascar5


    kw1 = AddStaticVehicle(487,1162.2042,-1369.8972,26.8136,239.1286,1,3); // Medic1
    kw2 = AddStaticVehicle(487,1161.5787,-1354.0658,26.8497,234.8770,1,3); // Medic2
    kw3 = AddStaticVehicle(431,1140.8458,-1362.3026,13.8587,359.1331,1,3); // Medic3
    kw4 = AddStaticVehicle(598,1135.8857,-1344.1547,13.5231,270.5571,1,3); // Medic4
    kw5 = AddStaticVehicle(598,1135.9465,-1337.2003,13.4642,270.9145,1,3); // Medic5
    kw6 = AddStaticVehicle(416,1123.9515,-1329.8652,13.3263,357.7447,1,3); // Medic6
    kw7 = AddStaticVehicle(416,1111.0968,-1329.9790,13.3184,1.5865,1,3); // Medic7
    kw8 = AddStaticVehicle(416,1097.2808,-1330.0079,13.3139,0.5391,1,3); // Medic8
    kw9 = AddStaticVehicle(490,1148.1882,-1314.8795,13.7043,0.0511,1,3); // Medic9
    kw10 = AddStaticVehicle(490,1148.1913,-1304.1487,13.7082,0.0281,1,3); // Medic10


    fc1 = AddStaticVehicleEx(490,1525.7498,-1460.2684,9.6273,181.2246,0,0,-1); // fbicar1
    fc2 = AddStaticVehicleEx(490,1522.5015,-1460.2185,9.6274,181.9861,0,0,-1); // fbicar2
    fc3 = AddStaticVehicleEx(490,1518.9321,-1460.2692,9.6292,180.6855,0,0,-1); // fbicar3
    fc4 = AddStaticVehicleEx(597,1514.9213,-1459.9303,9.2692,180.2350,0,0,-1); // fbicar4
    fc5 = AddStaticVehicleEx(597,1516.6084,-1478.3151,9.2689,356.5143,0,0,-1); // fbicar6
    fc6 = AddStaticVehicleEx(597,1513.1222,-1478.4147,9.2682,356.9951,0,0,-1); // fbicar5
    fc7 = AddStaticVehicleEx(421,1522.4119,-1478.1223,9.3825,0.3506,0,0,-1); // fbicar7
    fc8 = AddStaticVehicleEx(421,1525.8542,-1478.0079,9.3825,2.0047,0,0,-1); // fbicar8


    gc1 = AddStaticVehicleEx(560,2516.7781,-1672.4017,13.7498,64.6260,86,86,-1); // groovecar1