#1
Отправлено 05 июля 2018 — 16:36
-
- Прохожий
-
Решить нужно первое, ошибку
C:UsersGrimLandDesktopНовая папка (2)gamemodesnew.pwn(31156) : error 018: initialization data exceeds declared size C:UsersGrimLandDesktopНовая папка (2)gamemodesnew.pwn(33555) : warning 203: symbol is never used: "TODO" C:UsersGrimLandDesktopНовая папка (2)gamemodesnew.pwn(38747) : warning 203: symbol is never used: "TODO_THIS" Pawn compiler 3.10.20150531 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
Сам код
{ static const chat_type_name[3][25] = {"{FF3333}Отключен", "{00CC00}Стандарт", "{0099FF}"SERVER_NAME}; new s_info[256]; format ( s_info, sizeof s_info, "Основной чатtt%sn" "Чат организацииt%sn" "Ники над игрокамиt%sn" "Ники в чатеtt%sn" "ID игроков в чатеt%sn" "Управл. транспортомt%sn" "{888888}[Сохранить настройки]", chat_type_name[GetPlayerSettingData(playerid, S_CHAT_TYPE)], GetPlayerSettingData(playerid, S_TEAM_CHAT) ? ("{00CC00}Включен") : ("{FF3333}Отключен"), GetPlayerSettingData(playerid, S_PLAYERS_NICK) ? ("{00CC00}Включены") : ("{FF3333}Отключены"), GetPlayerSettingData(playerid, S_NICK_IN_CHAT) ? ("{00CC00}Включены") : ("{FF3333}Отключены"), GetPlayerSettingData(playerid, S_ID_IN_CHAT) ? ("{00CC00}Включены") : ("{FF3333}Отключены"), GetPlayerSettingData(playerid, S_VEH_CONTROL) ? ("{00CC00}Клавиши и команды") : ("{FF9900}Только команды") ); return Dialog(playerid, DIALOG_PLAYER_SETTINGS, DIALOG_STYLE_LIST, "{FFCD00}Личные настройки", s_info, "Вкл|Выкл", "Назад"); }
Строка в которой ошибка
chat_type_name[3][25] = {"{FF3333}Отключен", "{00CC00}Стандарт", "{0099FF}"SERVER_NAME};
0
#2
Отправлено 05 июля 2018 — 16:53
-
- Местный
-
Цитата
error 018: initialization data exceeds declared size — несовпадение данных в массиве с указанными рамками (увеличить размер массива);
http://pawn-wiki.ru/…reduprezhdenii/
Сообщение отредактировал Foxed: 05 июля 2018 — 16:53
0
#3
Отправлено 05 июля 2018 — 17:00
-
- Прохожий
-
Foxed (05 июля 2018 — 16:53) писал:
[3][25]?
0
#4
Отправлено 05 июля 2018 — 20:27
-
- Прохожий
-
error 018: initialization data exceeds declared size — несовпадение данных в массиве с указанными рамками (увеличить размер массива);
0
new const Fraction_Rang[MAX_FRACTIONS][MAX_RANGS][15] ={ {"Нет","-","-","-","-","-","-","-","-","-","-"}, {"-","Охранник","Нач.Охраны","Секретарь","Ст.Секретарь","Адвокат","Советник","Прокурор","Прокурор Области","Депутат","Зам.Губернатора","Губернатор"}, {"-","Ефрейтор","Мл.Сержант","Сержант","Ст.Сержант","М.Лейтенант","Лейтенант","Ст.Лейтенант","Капитан","Майор"}, {"-","Рядовой","Мл.Сержант","Сержант","Ст.Сержант","Старшина","Прапорщик","Ст.прапорщик","Мл.Лейтенант","Лейтенант","Ст.лейтенант","Капитан","Майор","Подполковник","Полковник","Генерал"}, {"-","Рядовой","Мл.Сержант","Сержант","Ст.Сержант","Старшина","Прапорщик","Ст.прапорщик","М.Лейтенант","Лейтенант","Ст.лейтенант","Капитан","Майор","Подполковник","Полковник","Генерал"}, {"-","Интерн","Мл. мед. работник","Ст. мед. работник","Врач участковый","Врач терапевт","Врач хирург","Мл. специалист","Ст. специалист","Зав. отделения","Глав. врач"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","Newman","Hustla","Huckster","True","Warrior","Gangsta","O.G","Big Bro","Legend","Daddy"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","Amigo","Macho","Junior","Ermanno","Bandido","Autoridad","Adjunto","Veterano","Vato Loco","Padre"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","Рядовой","Ефрейтор","Мл.Сержант","Сержант","Ст.Сержант","Старшина","Прапорщик","Ст.Прапорщик","Мл.Лейтенант","Лейтенант","Ст.Лейтенант","Капитан","Майор","Подполковник","Полковник"}, {"-","Матрос","Ст.матрос","Старшина 2 статьи","Старшина 1 статьи.","Гл.старшина","Гл.корабельный старшина","Мичман","Ст.Мичман","Мл.лейтенант","Лейтенант","Ст.лейтенант","Капитан-лейтенант","Капитан 3-го ранга","Капитан 2-го ранга","Капитан 1-го ранга"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","Novizio","Associato","Controllato","Razionate","Combatento","Soldato","Capo","Strada Boss","Consigliere","Don"}, {"-","Вакасю","Томодати","Кедай","Сямэйгасира","Вакагасира","Cо-хонбуте","Камбу","Оядзи","Сайко-Комон","Кумитэ"}, {"-","Шнырь","Босяк","Браток","Бык","Авторитет","Зам.Бригадира","Бригадир","Смотрящий","Блатной","Вор в законе"}, {"-","Помощник редакции","Верстальщик новостей","Радиотехник","Журналист","Ст. журналист","Корректор","Помощник редактора","Редактор","Главный редактор","Директор"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"} } Ошибка в строке: {"-","Охранник","Нач.Охраны","Секретарь","Ст.Секретарь","Адвокат","Советник","Прокурор","Прокурор Области","Депутат","Зам.Губернатора","Губернатор"},
Сама ошибка:
C:UsersИгорьDesktopCRMP Wndowsgamemodesnew.pwn(2667) : error 018: initialization data exceeds declared size Pawn compiler 3.2.3664 Copyright (c) 1997-2017, ITB CompuPhase 1 Error.
Ошибка!
error 018: initialization data exceeds declared size
То где ошибка
static const stock carsC[23][6] = { // ID машины,стоимость,класс,макс.скорость,привод(0-передний|1-задний|2-4wd),вес
{401, 2000,1,95,0,1200}, //ИЖ 2715
{496, 4000,1,254,1,12356}, //ЗАЗ-1102
{542, 6000,1,221,0,12363}, //ВАЗ 2121
{439, 8000,1,214,1,15213}, //ВАЗ 2105
{546, 10000,1,199,2,123521}, //ВАЗ 2106
{549, 12000,1,200,2,532}, //ВАЗ 111 ОКА
{467, 14000,1,196,2,12355}, //ВАЗ 2107
{565, 16000,1,196,2,12355}, //ВАЗ 2109
{458, 18000,1,196,2,12355}, //ВАЗ 2114
{491, 30000,2,220,0,1200}, //Toyota Prius
{505, 40000,2,187,0,432423}, //Porshe Cayenne
{529, 50000,2,240,0,1200}, //Lada Vesta
{551, 60000,2,235,0,432432}, //Honda Accord
{587, 70000,2,255,0,1200}, //Subaru WRX STI
{602, 100000,3,190,0,4324}, //Honda S2000
{604, 110000,3,181,2,1200}, //BMW M5
{506, 110000,3,181,2,1200}, //BMW X5
{558, 170000,3,185,2,1200}, //BMW 4
{451, 120000,3,170,0,423423}, //Bentley Continental
{480, 130000,3,241,0,1200}, //Audi R8 GT Spyder
{503, 140000,3,185,0,432423}, //Nissan GT-R
{502, 150000,3,185,0,432423}, //Chevrolet Camaro
{494, 160000,3,196,1,1200}, //BMW I8
};
Что только не делал, одно и тоже, выручайте)
Just use it like this …. You dont need to specify the number of data adde in that array …just use it like this
pawn Код:
new CarSpawns[][eCars] = {
{405,2205.2,-1177.0,25.7,270.8},//carid 90
{554,2205.1,-1169.1,25.7,270.8},
{426,2216.7,-1170.6,25.7,268.3},
{445,2228.5,-1177.3,25.7,88.4},
{492,2229.2,-1170.2,25.7,86.9},
{507,2228.9,-1162.7,25.7,87.8},
{545,2217.0,-1157.2,25.7,269.8},
{540,169.1929,-1342.3611,69.7396,180.4404},
{482,422.8060,-1263.5979,51.6681,21.4204},
{547,405.9748,-1264.3921,50.1237,24.2110},
{550,2242.3, -1235.4, 24.3,359.7513},
{551,2223.9, -1237.3, 24.4,358.8547},
{560,2106.4695,-1248.7920,24.0461,0.1524},
{566,2196.2891,-1277.7905,24.2147,180.4522},
{402,198.6057,-1437.2435,13.1844,318.3837},
{405,216.5521,-1431.4004,13.0853,132.5749},
{554,334.2231,-1343.7405,14.3828,209.9581},
{426,481.0428,-1320.8564,15.4095,35.6808},
{507,697.4343,-1230.9486,16.5063,298.7916},
{545,723.9850,-1121.5535,18.1450,333.9010},
{540,912.2176,-996.2035,38.1402,7.5764},
{482,982.1829,-921.8636,41.8776,262.3163},
{547,981.8715,-917.3546,41.5443,88.0589},
{550,1188.4082,-925.1859,42.8590,277.5563},
{400,1307.5226,-914.4717,39.0082,269.3765},
{405,1450.2,-937.1,36.2,269.6909}, //116
{492,2148.3257,-1175.2518,24.1959,269.6909},
{507,2161.4871,-1163.1450,23.6760,269.1628},
{545,2216.8965,-1165.9469,25.4697,89.8643},
{540,2348.2910,-1167.9983,27.3637,323.1586},
{482,2502.0388,-1134.9507,39.1953,150.9506},
{547,2909.4895,-1180.3746,11.0176,222.1346},
{550,2853.1858,-1326.8011,11.1511,278.9301},
{551,2797.2690,-1549.3374,10.4935,93.0282},
{533,2796.9031,-1567.2024,10.6386,272.4041},
{482,2813.2175,-1673.0276,9.6638,2.3369},
{547,2827.6736,-1703.9755,9.7308,77.2896},
{550,2809.3872,-1837.2391,9.7398,268.9880},
{551,2870.8789,-1943.2599,11.4834,359.2344},
{566,2411.5386,-2134.7576,13.9352,0.7795},
{554,1389.7467,-2695.9370,13.4164,121.1818},
{405,783.1359,-1601.8208,13.2577,270.9069},
{554,782.7205,-1619.3584,13.2653,93.0550},
{426,923.0841,-1361.7990,13.0324,181.1371},
{445,911.7986,-1352.7415,13.1543,359.3287},
{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,2377.0374,-1927.8434,13.1071,0.7843},
{547,2391.7234,-1978.0658,13.1963,90.1736},
{550,2396.6899,-1966.8123,13.2793,271.6838},
{551,2391.1135,-1500.6554,23.6355,269.7709},
{560,2390.7446,-1490.9093,23.5335,271.1926},
{405,321.2212,-1809.3561,4.2627,179.7758},
{554,334.3586,-1789.3143,4.6717,178.7722},
{426,343.8039,-1808.9827,4.3090,181.8368},
{445,499.4850,-1764.0182,5.3367,89.7930},
{492,646.4998,-1771.6411,13.2905,348.7706},
{507,740.4332,-1797.7659,13.9196,349.9927},//150
{545,652.4496,-1656.7273,14.4585,91.3294},
{540,546.0256,-1622.4747,16.4585,180.7857},
{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,297.9918,-1535.9011,24.3758,231.2773},
{566,524.0590,-1375.0093,15.8231,193.3626},
{405,598.9131,-1519.1414,14.8214,180.4083},
{554,593.2022,-1519.3578,14.9461,181.5466},
{426,733.5679,-1438.4880,13.3203,266.7551},
{445,770.4971,-1431.1127,13.3247,0.7436},
{492,735.9440,-1346.2430,13.3003,88.3069},
{507,736.8572,-1337.1550,13.3140,271.3832},
{545,856.7003,-1363.1852,13.4093,179.8542},//165
{482,888.1506,-1659.2727,13.3296,1.2414},
{547,879.1024,-1669.2560,13.3305,180.5853},
{550,888.0242,-1678.5981,13.3294,358.4990},
{551,920.4441,-1823.0966,12.3452,84.1821},
{560,986.5818,-1761.2992,13.4014,181.9385},
{566,1062.6744,-1757.9412,13.1956,89.0572},
{405,1084.3831,-1763.8369,13.1501,269.0443},
{554,1081.8948,-1629.9564,13.4064,90.0880},
{426,981.7941,-1523.5115,13.3379,267.2751},
{445,1014.7464,-1434.4586,13.3292,266.3129},
{492,2684.6,-1990.2,13.3,180.0931},
{507,2684.6,-2019.0,13.3 ,0.8777},
{545,1096.1,-1379.9,13.3,270.1909},//178
{540,1151.6812,-1203.2323,20.2889,273.5155},//179
{482,1182.2568,-1219.2407,18.4163,0.5578},
{547,1260.9978,-1187.1921,23.3559,183.3606},
{550,1331.9304,-1081.3899,24.9941,90.4092},
{551,1284.8755,-1525.5013,13.3451,269.4388},
{560,1279.1887,-1539.2032,13.3201,94.8070},
{566,1275.9120,-1646.7448,13.3273,267.2669},
{405,1318.2792,-1785.7821,13.2429,182.4215},
{554,1253.9153,-1833.3832,13.1734,175.3692},
{426,1279.2875,-1814.4156,13.1657,93.6385},
{445,1198.5004,-1835.2216,13.1820,93.6780},
{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,1742.8494,-1857.7446,13.1960,271.1740},
{547,1743.5837,-1844.6041,13.3557,180.3384},
{550,1838.1904,-1871.3842,13.1703,358.5452},
{551,1841.4791,-1871.6549,13.1687,179.3825},
{560,1777.1376,-1910.0310,13.1681,91.0725},
{566,1803.1235,-1920.5144,13.1758,266.0453},
{566,1981.0780,-1986.3513,13.3275,2.1479},
{405,1987.6057,-1994.9520,13.3296,359.9128},
{554,1978.0371,-2066.7500,13.1640,358.2871},
{426,1984.7471,-2066.7776,13.1625,359.7226},
{445,1938.0565,-2086.8459,13.3429,268.3414},
{492,1947.1119,-2136.3887,13.3286,90.9804},
{507,1932.1523,-2141.5220,13.3429,1.8383},
{545,1793.9172,-2148.5300,13.3781,359.7861},
{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,1573.8772,-1209.9202,17.1378,92.7502},
{554,1476.2012,-1120.3083,23.5660,359.9746},
{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,1735.2826,-1010.5402,23.6588,346.3133},
{540,1770.4874,-1060.9886,23.6658,179.2750},
{482,1739.9854,-1084.5490,23.6660,176.8026},
{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},
{445,2229.1128,-1357.8774,23.6930,268.2194},
{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},
{452,720.1,-1694.0,-0.4,179.4},
{452,721.2,-1629.4,-0.4,180.9},
{452,739.5,-1670.5,-0.6,177.5},
{452,-1474.4949,693.0169,0.1996,0.0751},
{452,-1720.0717,1439.6177,-0.4913,357.6789},
{405,-2082.3562,-117.3896,34.9299,177.0056},
{405,-2072.5933,-117.4564,34.9383,178.0982},
{601,2240.3865,2437.4646,-7.4531,88.5965},
{601,2240.2437,2442.4761,-7.4531},
{601,2240.6177,2447.1157,-7.4531,88.5582},
{490,2241.0100,2471.1807,-7.4531,90.7890},
{490,2241.5444,2475.9316,-7.4531,88.9496},
{598,2246.3130,2432.7932,-7.4531,183.0070},
{598,2250.6426,2431.0869,-7.4531,177.5510},
{598,2255.0613,2431.0286,-7.4531,182.1863},
{598,2259.5898,2431.1636,-7.4531,180.4268},
{598,2263.8491,2431.2590,-7.4531,180.9401},
{598,2268.2810,2431.4951,-7.4531,179.2968},
{598,2272.8660,2431.2336,-7.4531,176.2455},
{598,2277.1106,2431.4255,-7.4531,177.1995},
{598,2280.8176,2424.5610,10.8203,270.0908},
{598,2298.0515,2424.4763,10.8203,88.493},
{497,2288.3972,2438.2754,46.9775,181.4567},
{497,2274.5322,2439.0732,46.9693,181.6611},
{599,2251.8992,2444.0942,10.8203,177.6664},
{599,2282.4248,2476.4668,10.8203,359.8827},
{599,2277.7869,2475.8293,10.8203,359.4575},
{427,2291.0261,2457.5977,10.8203,359.4572},
{427,2299.1064,2451.7056,3.2734,92.5627},
{427,2298.7217,2464.4309,3.2734,89.5409},
{490,2298.7773,2460.2996,3.2734,89.2197},
{490,2251.7600,2476.5627,10.8203,357.3773},
{490,2256.2629,2476.1338,10.8203,357.9984},
{523,2260.3118,2475.6333,10.8203,358.4266},
{523,2269.2825,2458.8616,10.8203,359.4106},
{523,2273.5830,2458.8098,10.8203,1.4264},
{523,2277.7815,2458.4675,10.8203,358.1949},
{405,-2062.4253,-117.6652,34.9347,180.8394},
{523,2282.3535,2459.8691,10.8203,359.8232};
Добро пожаловать!
Зарегистрировавшись у нас, вы сможете обсуждать, делиться и отправлять личные сообщения другим участникам нашего сообщества.
Зарегистрироваться!
-
Если Вы желаете помогать развитию проекта, готовы заполнять раздел(-ы) и подсказывать другим пользователям на портале, есть возможность попасть в команду редакторов. Для этого следует обратиться в техническую поддержку
Решено Ошибка при компиле
-
Автор темы
‘morozov’
-
Дата начала
13 Дек 2022
- Статус
- В этой теме нельзя размещать новые ответы.
-
#1
Пытаюсь скомпилировать файл но pawn.exe выдает ошибку
arizonarp.pwn(12563) : error 018: initialization data exceeds declared
Вот сама строка:
{«Перевозим провизию!{6DA5EF}[Ежедневное]{FFFFFF}»,»{FFFFFF}Привет, пришел за работой?nУ меня всегда есть чем занять человека! В нашу семью нужно пополнять провизию, ибо нам не выжить.nВозьми один из грузовиков и перевези 6 груза из порта СФ!nn{DA9815}Для выполнения задания необходимо взять грузовик вашей семьи и сделать 6 рейсаnпо перевозке провизии на склад семьи!nПо завершению задания, нужно вернуться к Нейтону за наградой.nnНаграда за выполнение:n 2 семейных талона.n140 AZ-RUB и 10 часов игры»,6},
Вот еще:
enum QuestInfo
{
QuestName[64],
QuestText[600],
LastProgress
}
new QI[MAX_QUESTS][QuestInfo]
-
#2
Предоставьте полную функцию создания заданий (обязательно в код)
-
#3
м
Предоставьте полную функцию создания заданий (обязательно в код)
могу файлом скинуть код?
-
#5
pawno.txt
Посмотреть и скачать с Яндекс.Диска
disk.yandex.ru
-
#6
Отсутствует ;
-
#7
поставил туда ; вышли 2 ошибки а была 1
arizonarp.pwn(12563) : error 018: initialization data exceeds declared size
arizonarp.pwn(12577) : error 010: invalid function or declaration
На строке 12577 стоит «};»
-
#8
MAX_QUESTS сколько стоит?
-
#9
#define MAX_QUESTS (13)
MAX_QUESTS сколько стоит?
-
#12
arizonarp.pwn(12577) : error 052: multi-dimensional arrays must be fully initialized
-
#13
arizonarp.pwn(12577) : error 052: multi-dimensional arrays must be fully initialized
-
#15
все заработало спасибо <3
- Статус
- В этой теме нельзя размещать новые ответы.
Столкнулся с такой проблемой, появился Error 018.
C:UsersИгорьDesktopCRMP Wndowsgamemodesnew.pwn(2641) : error 018: initialization data exceeds declared size C:UsersИгорьDesktopCRMP Wndowsgamemodesnew.pwn(2669) : error 018: initialization data exceeds declared size C:UsersИгорьDesktopCRMP Wndowsgamemodesnew.pwn(2692) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2017, ITB CompuPhase 3 Errors.
Строки:
new const Fraction_Name[MAX_FRACTIONS][26] = { "Нет", "Правительство Области", "Участковый Пункт Полиции", "ГУ МВД", "Федеральная Служба Безопасности", "Больница г.Арзамас", "Свободный слот", "ОПГ Ореховское", "Свободный слот", "ОПГ Восточное", "Свободный слот", "Свободный слот", "Сухопутные", "МП(Выкл)", "Свободный слот", "Свободный слот", "Измайловские", "Русская мафия", "СМИ г.Южный", "Свободный слот", "Свободный слот", "Свободный слот", "Свободный слот", "Свободный слот", "Свободный слот", "Свободный слот" };
new const Fraction_Rang[MAX_FRACTIONS][MAX_RANGS][26] ={ {"Нет","-","-","-","-","-","-","-","-","-","-"}, {"-","Охранник","Начальник Охраны","Секретарь","Старший Секретарь","Адвокат","Советник","Прокурор","Депутат","Заместитель Губернатора","Губернатор"}, {"-","Сержант","Ст.Сержант","Мл.Лейтенант","Лейтенант","Ст.Лейтенант","Капитан","-","-","-","-"}, {"-","Рядовой","Младший Сержант","Сержант","Старший Сержант","Старшина","Прапорщик","Старший прапорщик","Младший Лейтенант","Лейтенант","Старший лейтенант","Капитан","Майор","Подполковник","Полковник","Генерал"}, {"-","Рядовой ФСБ","Младший Сержант ФСБ","Сержант ФСБ","Старший Сержант ФСБ","Старшина ФСБ","Прапорщик ФСБ","Старший прапорщик ФСБ","Младший Лейтенант ФСБ","Лейтенант ФСБ","Ст.лейтенант ФСБ","Капитан ФСБ","Майор ФСБ","Подполковник ФСБ","Полковник ФСБ","Генерал ФСБ"}, {"-","Интерн","Мл. мед. работник","Ст. мед. работник","Врач участковый","Врач терапевт","Врач хирург","Мл. специалист","Ст. специалист","Зав. отделения","Глав. врач"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","Newman","Hustla","Huckster","True","Warrior","Gangsta","O.G","Big Bro","Legend","Daddy"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","Amigo","Macho","Junior","Ermanno","Bandido","Autoridad","Adjunto","Veterano","Vato Loco","Padre"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","Рядовой","Ефрейтор","Младший Сержант","Сержант","Старший Сержант","Старшина","Прапорщик","Старший Прапорщик","Младший Лейтенант","Лейтенант","Старший Лейтенант","Капитан","Майор","Подполковник","Полковник"}, {"-","Матрос","Старший матрос","Старшина второй статьи","Старшина первой статьи.","Главный старшина","Главный корабельный старшина","Мичман","Страший Мичман","Младший лейтенант","Лейтенант","Старший лейтенант","Капитан-лейтенант","Капитан 3-го ранга","Капитан 2-го ранга","Капитан 1-го ранга"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","Novizio","Associato","Controllato","Razionate","Combatento","Soldato","Capo","Strada Boss","Consigliere","Don"}, {"-","Вакасю","Томодати","Кедай","Сямэйгасира","Вакагасира","Cо-хонбуте","Камбу","Оядзи","Сайко-Комон","Кумитэ"}, {"-","Шнырь","Босяк","Браток","Бык","Авторитет","Зам.Бригадира","Бригадир","Смотрящий","Блатной","Вор в законе"}, {"-","Помощник редакции","Верстальщик новостей","Радиотехник","Журналист","Ст. журналист","Корректор","Помощник редактора","Редактор","Главный редактор","Директор"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, {"-","-","-","-","-","-","-","-","-","-","-"}, };
Изменено 27 февраля, 2019 пользователем IgorXaker
Содержание
- Pawno что такое 1 error
- Errors List
- From SA-MP Wiki
- Contents
- General Pawn Error List
- Error categories
- Errors
- Fatal errors
- Warnings
- Common Errors
- 001: expected token
- 002: only a single statement (or expression) can follow each “case”
- 004: function «x» is not implemented
- 025: function heading differs from prototype
- 035: argument type mismatch (argument x)
- 036: empty statement
- 046: unknown array size (variable x)
- 047: array sizes do not match, or destination array is too small
- 055: start of function body without function header
- Common Fatal Errors
- 100: cannot read from file: » «
- Common Warnings
- 202: number of arguments does not match definition
- 203: symbol is never used: «symbol»
- 204: symbol is assigned a value that is never used: «symbol»
- 209: function should return a value
- 211: possibly unintended assignment
- 213: tag mismatch
- 217: loose indentation
- 219: local variable «foo» shadows a variable at a preceding level
- 225: unreachable code
- 235: public function lacks forward declaration (symbol «symbol»)
Pawno что такое 1 error
- Команда форума Сообщений: 3 021
Регистрация: 14.07.2017
- IP: 127.0.0.1:8904
- Занятия: Скриптер
Из названия все ясно. ИД’ы всех ошибок, фатальных ошибок, а также предупреждений в PAWNO.
error 001: expected token: «%s», but found «%s» — пропущен символ «%s», но найден «%s»;
error 002: only a single statement (or expression) can follow each «case» — Только один оператор и и выражение может следовать после «case»;
error 003: declaration of a local variable must appear in a compound block — Локальные переменные должны быть в блоке;
error 004: function «%s» is not implemented — функция «%s» не определена;
error 005: function may not have arguments — Функция может не иметь аргументов;
error 006: must be assigned to an array — Это должно быть в массиве;
error 007: operator cannot be redefined — Оператор не может использоваться;
error 008: must be a constant expression; assumed zero — Это должно быть константой равной нулю;
error 009: invalid array size (negative or zero) — Неправильный размер массива. Отрицательное значение или ноль;
error 010: invalid function or declaration — Неправильная функция;
error 011: invalid outside functions — Неправильный вывод функции;
error 012: invalid function call, not a valid address — Неправильный вызов функции;
error 013: no entry point (no public functions) — Не точка входа;
error 014: invalid statement; not in switch — Неверная команда;
error 015: «default» case must be the last case in switch statement — Оператор «default» должен быть последним;
error 016: multiple defaults in «switch» — Несколько операторов «default» в «switch»;
error 017: undefined symbol «%s» — неизвестный символ (неопределённая переменная) «%s»;
error 018: initialization data exceeds declared size — несовпадение данных в массиве с указанными рамками (увеличить размер массива);
error 019: not a label: %s» — %s — не строка;
error 020: invalid symbol name «%s» — ошибочное название символа (начинается с цифры, например);
error 021: symbol already defined: %s» — символ уже определён (дважды встречается new одного и того-же символа);
error 022: must be lvalue (non-constant) — Должна быть левой частью;
error 023: array assignment must be simple assignment — начения массива должны быть простыми;
error 024: «break» or «continue» is out of context — Операторы «break» или «continue» вне границ блока;
error 025: function heading differs from prototype — Функция заголовка отличается от прототипа;
error 026: no matching «#if. » — «#if. » — не найдено;
error 027: invalid character constant — Неправильные символы константы;
error 028: invalid subscript (not an array or too many subscripts): %s» — неверное выражение, нет результата %s является недействительным массивом;
error 029: invalid expression, assumed zero — неверное выражение, нет результата;
error 030: compound statement not closed at the end of file — составной оператор не закрыт в конце файла, поставить return 1;> в конец мода;
error 031: unknown directive — неверная директива (подключение плагина в дефайнах, неверное установка пути инклуда и тому подобное);
error 032: array index out of bounds (variable «%s») — Индекс массива превышен;
error 033: array must be indexed (variable «%s») — Массив неизвестен;
error 034: argument does not have a default value (argument %d) — Аргумент не имеет начального значения;
error 035: argument type mismatch (argument %d) — Несоответствие типов аргумента;
error 036: empty statement — Пустой оператор;
error 037: invalid string (possibly non-terminated string) — незавершённая строка (обычно бывает, если забывам ставить закрывающие ковычки);
error 038: extra characters on line — Лишние символы в строке;
error 039: constant symbol has no size — Символьная константа не имеет размера;
error 040: duplicate «case» label (value %d) — несколько раз объявлен «case» с одним и тем же параметром;
error 041: invalid ellipsis, array size is not known — Размер массива неизвестно;
error 042: invalid combination of class specifiers — Недопустимое сочетание класса;
error 043: character constant exceeds range for packed string — Символьная константа превышает размер строки;
error 044: positional parameters must precede all named parameters — ;
error 045: too many function arguments — Слишком много аргументов для функции;
error 046: unknown array size (variable «%s») — Неизвестный размер массива %s;
error 047: array sizes do not match, or destination array is too small — размеры массивов конфликтуют, либо целевой массив слишком маленький (нужно увеличить число в квадратных скобках);
error 048: array dimensions do not match — Размеры массива не совпадают;
error 049: invalid line continuation — Неправильное продолжении линии;
error 050: invalid range — Неправильный диапазон;
error 051: invalid subscript, use «[ ]» operators on major dimensions — Неправильный индекс. Используйте «[ ]»;
error 052: multi-dimensional arrays must be fully initialized — Много размерные массивы должны быть
error 053: exceeding maximum number of dimensions — Превышение максимального числа измерений;
error 054: unmatched closing brace — Непревзойденная закрывающаяся скобка;
error 055: start of function body without function header — описание функции без заголовка (пропущен public(. ));
error 056: arrays, local variables and function arguments cannot be public (variable «%s») — ;
error 057: unfinished expression before compiler directive — Незавершенное выражение для компилятора;
error 058: duplicate argument; same argument is passed twice — Дублирование аргумента. Аргумент передается несколько раз;
error 059: function argument may not have a default value (variable «%s») — Аргумент не может иметь значение по-умолчанию;
error 060: multiple «#else» directives between «#if . #endif» — Несколько «#else» между «#if . #endif»;
error 061: «#elseif» directive follows an «#else» directive — «#elseif» перед «#else»;
error 062: number of operands does not fit the operator — Количество операторов не соответствует оператору;
error 063: function result tag of operator «%s» must be «%s» — Результат функции %s должен быть %s;
error 064: cannot change predefined operators — Невозможно изменить уже определенные операторы;
error 065: function argument may only have a single tag (argument %d) — В этой функции может быть только один аргумент %d;
error 066: function argument may not be a reference argument or an array (argument «%s») — Аргумент функции не может быть ссылкой или массивом;
error 067: variable cannot be both a reference and an array (variable «%s») — Переменная %s не может быть как массив или ссылка;
error 068: invalid rational number precision in #pragma — Неправильное число в #pragma;
error 069: rational number format already defined — Формат рационального числа уже определен;
error 070: rational number support was not enabled — Рациональное число не поддерживается;
error 071: user-defined operator must be declared before use (function «%s») — Объявленный оператор должен быть перед использованием;
error 072: «sizeof» operator is invalid on «function» symbols — Оператор «sizeof» не может быть использован для символов;
error 073: function argument must be an array (argument «%s») — Аргумент %s должен быть массивом;
error 074: #define %s must start with an alphabetic character — макрос %s должен начинаться с букв;
error 075: input line too long (after substitutions) — слишком длинная строка после интеграции параметров (возможно, много лишних пробелов, или результативные данные слишком велики для строки (по длине));
error 076: syntax error in the expression, or invalid function call — Неправильный синтаксис или неправильный вызов функции;
error 077: malformed UTF-8 encoding, or corrupted file: %s — Плохая кодировка UTF-8 или плохой файл %s;
error 078: function uses both «return» and «return » — Функция использует два «return»;
error 080: unknown symbol, or not a constant symbol (symbol «%s») — Неизвестный или непостоянный символ %s;
error 081: cannot take a tag as a default value for an indexed array parameter (symbol «%s») — Нельзя взять значение в массив %s;
error 082: user-defined operators and native functions may not have states — нативы и пользовательские операторы не могут иметь переключателей;
error 083: a function may only belong to a single automaton (symbol «%s») — Функция может принадлежать только к одной автоматизации;
error 084: state conflict: one of the states is already assigned to another implementation (symbol «%s») — для функции %s уже определенна данная state;
error 085: no states are defined for function «%s» — не определенна ни одна state для функции %s;
error 086: unknown automaton «%s» — Неизвестная автоматизация %s;
error 087: unknown state «%s» for automaton «%s» — не определен state %s, для переключения %s;
error 088: number of arguments does not match definition — количество аргументов не совпадает с объявленными в функции;
fatal error 100: cannot read from file: «%s» — невозможно прочитать/найти файл %s в стандартной директории;
fatal error 107: too many error messages on one line — слишком много ошибок на одной строке (обычно из-за одного неправильного параметра);
warning 200: symbol «%s» is truncated to 31 characters — название переменной %s обрезается до 31 символа (укоротите название переменной %s);
warning 201: redefinition of constant/macro (symbol «%s») — двойное определение одинаковой константы (смотреть #define);
warning 202: number of arguments does not match definition — несовпадение количества аргументов;
warning 203: symbol is never used: «%» — символ «%» нигде не используется;
warning 204: symbol is assigned a value that is never used: «%s» — символ создан, ему присваивается значение, но далее он не используется.
warning 208: function with tag result used before definition, forcing reparse — функция с типовым результатом используется перед объявлением
warning 209: function «%s» should return a value — функция %s должна возвращать какое-либо значение (return 1; к примеру);
warning 211: possibly unintended assignment — в условии использовано не сравнение, а присвоение;
warning 213: tag mismatch — несовпадение тэгов;
warning 215: expression has no effect — выражение не имеет эффекта;
warning 216: nested comment — вложенный комментарий (вынесите его за функцию);
warning 217: loose indentation — невыровненная строка (return должен быть строго под телом функции по левому краю, либо можно добавить в начало мода строку #pragma tabsize 0, но это не рекомендуется, так как иногда может не понимать и не прочитывать скобки «<» и «>«);
warning 219: local variable «%s» shadows a variable at a preceding level — переменная дважды объявлена;
warning 224: indeterminate array size in «sizeof» expression (symbol «%s») — должен быть определён размер массива %s (если определён статиком, заменить дефайном);
warning 225: unreachable code — невалидный код;
warning 235: public function lacks forward declaration (symbol «%s») — необходим форвард функции %s (перед функцией пишем forward %s;
Пояснение: «%s — имя переменной/макроса/аргумента функции».
Авторы: OKStyle, webserfer, Kaza40k, [Nos]B[R]aiN[L], Ym[0]n, _volk_, ДениСыч, Roman1us.
При копировании на другие ресурсы, обязательно указывайте авторов, не зря ведь люди старались
Отредактировано 27 июля, 2017 пользователем stibs
Причина: bb код
Источник
Errors List
From SA-MP Wiki
Contents
General Pawn Error List
This pages contains the most common errors and warnings produced by the pawn compiler when creating SA:MP scripts.
When the compiler finds an error in a file, it outputs a message giving, in this order:
- the name of the file
- the line number were the compiler detected the error between parentheses, directly behind the filename
- the error class (error, fatal error or warning)
- an error number
- a descriptive error message
Note: The error may be on the line ABOVE the line that is shown, since the compiler cannot always establish an error before having analyzed the complete expression.
Error categories
Errors are separated into three classes:
Errors
- Describe situations where the compiler is unable to generate appropriate code.
- Errors messages are numbered from 1 to 99.
Fatal errors
- Fatal errors describe errors from which the compiler cannot recover.
- Parsing is aborted.
- Fatal error messages are numbered from 100 to 199.
Warnings
- Warnings are displayed for unintended compiler assumptions and common mistakes.
- Warning messages are numbered from 200 to 299.
Common Errors
001: expected token
A required token is missing.
002: only a single statement (or expression) can follow each “case”
Every case in a switch statement can hold exactly one statement.
To put multiple statements in a case, enclose these statements
between braces (which creates a compound statement).
The above code also produces other warnings/errors:
004: function «x» is not implemented
Most often caused by a missing brace in the function above.
025: function heading differs from prototype
This usually happen when new sa-mp version comes with new addition of argument to a function, like OnPlayerGiveDamage from 0.3x to 0.3z. The scripter must add «bodypart» argument to OnPlayerGiveDamage callback on their script.
Caused by either the number of arguments or the argument name is different.
035: argument type mismatch (argument x)
An argument passed to a function is of the wrong ‘type’. For example, passing a string where you should be passing an integer.
036: empty statement
Caused by a rogue semicolon ( ; ), usually inadvertently placed behind an if-statement.
046: unknown array size (variable x)
For array assignment, the size of both arrays must be explicitly defined, also if they are passed as function arguments.
047: array sizes do not match, or destination array is too small
For array assignment, the arrays on the left and the right side of the assignment operator must have the same number of dimensions. In addition:
- for multi-dimensional arrays, both arrays must have the same size;
- for single arrays with a single dimension, the array on the left side of the assignment operator must have a size that is equal or bigger than the one on the right side.
In the above code, we try to fit 12 characters in an array that can only support 8. By increasing the array size of the destination, we can solve this. Note that a string also requires a null terminator so the total length of «Hello World!» plus the null terminator is, in fact, 13.
055: start of function body without function header
This error usually indicates an erroneously placed semicolon at the end of the function header.
Common Fatal Errors
100: cannot read from file: » «
The compiler cannot find, or read from, the specified file. Make sure that the file you are trying to include is in the proper directory (default: pawnoinclude).
Multiple copies of pawno can lead to this problem. If this is the case, don’t double click on a .pwn file to open it. Open your editor first, then open the file through the editor.
Common Warnings
202: number of arguments does not match definition
The description of this warning is pretty self-explanatory. You’ve passed either too few or too many parameters to a function. This is usually an indication that the function is used incorrectly. Refer to the documentation to figure out the correct usage of the function.
This usually happen on GetPlayerHealth function with PAWNO function auto completion as it confuses with the NPC GetPlayerHealth function that only has ‘playerid’ argument.
203: symbol is never used: «symbol»
You have created a variable or a function, but you’re not using it. Delete the variable or function if you don’t intend to use it. This warning is relatively safe to ignore.
The stock keyword will prevent this warning from being shown, as variables/functions with the stock keyword are not compiled unless they are used.
204: symbol is assigned a value that is never used: «symbol»
Similar to the previous warning. You created a variable and assigned it a value, but you’re not using that value anywhere. Use the variable, or delete it. This warning, too, is relatively safe to ignore.
209: function should return a value
You have created a function without a return value
but you used it to assign on variable or function argument,
211: possibly unintended assignment
The assignment operator (=) was found in an if-statement, instead of the equality operator (==). If the assignment is intended, the expression must be wrapped in parentheses. Example:
213: tag mismatch
A tag mismatch occurs when:
- Assigning to a tagged variable a value that is untagged or that has a different tag
- The expressions on either side of a binary operator have different tags
- In a function call, passing an argument that is untagged or that has a different tag than what the function argument was defined with
- Indexing an array which requires a tagged index with no tag or a wrong tag name
Usually happen on a new variable created with missing tag on the required function such as Float:, Text3D:, Text:, etc. Example,
217: loose indentation
The compiler will issue this warning if the code indentation is ‘loose’, example:
Indentation means to push (indent) text along from the left of the page (by pressing the TAB key). This is common practice in programming to make code easier to read. This warning also exists to avoid dangling-else problem.
219: local variable «foo» shadows a variable at a preceding level
A local variable, i.e. a variable that is created within a function or callback, cannot have the same name as a global variable, an enum specifier, a function, or a variable declared higher up in the same function. The compiler cannot tell which variable you’re trying to alter.
It is customary to prefix global variables with ‘g’ (e.g. gTeam). However, global variables should be avoided where possible.
225: unreachable code
The indicated code will never run, because an instruction before (above) it causes a jump out of the function, out of a loop or elsewhere. Look for return, break, continue and goto instructions above the indicated line. Unreachable code can also be caused by an endless loop above the indicated line.
235: public function lacks forward declaration (symbol «symbol»)
Your public function is missing a forward declaration.
Источник
AMX Mod X Moderator Join Date: Feb 2005 Location: NJ, USA |
|
|||
|