Jump to content
  • 0

Problema la Complier


Guest raulika09

Question

Guest raulika09

Am o problema la

new Float:HouseCarSpawns
Uite ce am aici:
new Float:HouseCarSpawns[68][4] = {
{2452.7283,-1049.5295,59.2484,175.7684},//1
{2064.4,-1694.4,13.1,271.1561},//2
{2137.6025,-1369.6079,24.3998,0.2954},//3
{1109.8,-968.0,42.7,0.0},//4
{2497.6274,-2025.6306,13.2521,355.4281}, //5
{2645.0,-1990.8,13.1,180.0},//6
{2379.0803,-1352.7295,23.8044,359.2548},//7
{1910.5149,-1120.5304,25.4493,177.8350},//8
{828.8,-887.0,68.5,230.7095},//9
{2149.6,-1610.9,14.0,90.7904},//10
{760.1,-1687.8,4.3,180.6},//11
{645.5,-1616.1,14.9,0.0},//12
{2135.6790,-1328.4812,25.3132,359.4437},//13
{1971.9521,-1674.3673,15.6250,267.4205},//14
{959.5864,-901.0845,45.8584,177.3087},//15
{2445.8,-1326.8,23.6,18.4},//16
{2845.9,-1286.8,18.9,90.0},//17
{2510.2065,-1686.6537,13.3436,40.9452}, //18
{2770.9866,-1319.6285,39.5358,269.3118},//19
{2812.3079,-1249.8522,46.6584,121.1268},//20
{1514.0,-694.6,94.5,90.0},//21
{1246.7,-1107.6,25.5,266.4},//22
{831.7,-857.5,69.9,180.0},//23
{1007.9,-659.4,121.1,130.6194},//24
{1110.0,-726.4,100.1,90.0},//25
{259.7,-1221.0,74.7,202.0011},//26
{1463.7,-901.7,55.8,359.0},//27
{1440.1,-890.6,51.2,0.0},//28
{2188.9983,-1808.7736,13.1800,359.5364},//29
{283.6283,-1160.9851,80.6183,225.7260}, //30
{931.5033,-852.6615,93.1273,22.2322},//31
{686.2572,-1072.3381,49.5535,62.7273},//32
{1372.7396,-1771.3641,13.3809,271.2759}, //33
{217.2901,-1279.3134,62.9142,163.8978}//34
{2064.4,-1694.4,13.1,271.1561},//36
{-2712.7625,870.3005,70.5348,89.1608},//37
{1109.8,-968.0,42.7,0.0},//38
{2497.6274,-2025.6306,13.2521,355.4281}, //39
{2645.0,-1990.8,13.1,180.0},//40
{-2724.8965,914.8384,67.4253,110.1072},//41
{1910.5149,-1120.5304,25.4493,177.8350},//42
{828.8,-887.0,68.5,230.7095},//43
{2149.6,-1610.9,14.0,90.7904},//44
{760.1,-1687.8,4.3,180.6},//45
{645.5,-1616.1,14.9,0.0},//46
{-2635.2371,931.1931,71.5643,215.3709},//47
{-2665.9224,989.9724,64.6955,1.7814},//48
{959.5864,-901.0845,45.8584,177.3087},//49
{2445.8,-1326.8,23.6,18.4},//50
{2845.9,-1286.8,18.9,90.0},//51
{2159.8,-1803.9,13.3,271.4}, //52
{-2693.7847,132.3186,4.1676,89.5330},//53
{-2723.0105,977.7357,54.2926,359.9068},//54
{1514.0,-694.6,94.5,90.0},//55
{1246.7,-1107.6,25.5,266.4},//56
{831.7,-857.5,69.9,180.0},//57
{1007.9,-659.4,121.1,130.6194},//58
{1110.0,-726.4,100.1,90.0},//59
{259.7,-1221.0,74.7,202.0011},//60
{1463.7,-901.7,55.8,359.0},//61
{1440.1,-890.6,51.2,0.0},//62
{-2528.8298,2250.2998,4.8112,334.9590},//63
{-2554.7874,2270.5356,4.9064,333.9774}, //64
{-2371.1323,2438.4104,9.0698,159.2582},//65
{-2237.9492,893.7390,66.4872,89.7571},//66
{-2529.4817,-142.6608,19.7107,4.2929}, //67
{-2616.1897,-108.4479,4.1693,269.8246}//68
}")"};
Si ptoblema cu complier este:
C:\Users\DIANA\Desktop\server lock2\gamemodes\123.pwn(1263) : error 001: expected token: "}", but found "{"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Orice numere pun pe linia aia imi da eroare. Ma puteti ajuta va rog? Randul 1263 este acesta:
{2064.4,-1694.4,13.1,271.1561},//36

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

new Float:HouseCarSpawns[68][4] = {
{2452.7283,-1049.5295,59.2484,175.7684},//1
{2064.4,-1694.4,13.1,271.1561},//2
{2137.6025,-1369.6079,24.3998,0.2954},//3
{1109.8,-968.0,42.7,0.0},//4
{2497.6274,-2025.6306,13.2521,355.4281}, //5
{2645.0,-1990.8,13.1,180.0},//6
{2379.0803,-1352.7295,23.8044,359.2548},//7
{1910.5149,-1120.5304,25.4493,177.8350},//8
{828.8,-887.0,68.5,230.7095},//9
{2149.6,-1610.9,14.0,90.7904},//10
{760.1,-1687.8,4.3,180.6},//11
{645.5,-1616.1,14.9,0.0},//12
{2135.6790,-1328.4812,25.3132,359.4437},//13
{1971.9521,-1674.3673,15.6250,267.4205},//14
{959.5864,-901.0845,45.8584,177.3087},//15
{2445.8,-1326.8,23.6,18.4},//16
{2845.9,-1286.8,18.9,90.0},//17
{2510.2065,-1686.6537,13.3436,40.9452}, //18
{2770.9866,-1319.6285,39.5358,269.3118},//19
{2812.3079,-1249.8522,46.6584,121.1268},//20
{1514.0,-694.6,94.5,90.0},//21
{1246.7,-1107.6,25.5,266.4},//22
{831.7,-857.5,69.9,180.0},//23
{1007.9,-659.4,121.1,130.6194},//24
{1110.0,-726.4,100.1,90.0},//25
{259.7,-1221.0,74.7,202.0011},//26
{1463.7,-901.7,55.8,359.0},//27
{1440.1,-890.6,51.2,0.0},//28
{2188.9983,-1808.7736,13.1800,359.5364},//29
{283.6283,-1160.9851,80.6183,225.7260}, //30
{931.5033,-852.6615,93.1273,22.2322},//31
{686.2572,-1072.3381,49.5535,62.7273},//32
{1372.7396,-1771.3641,13.3809,271.2759}, //33
{217.2901,-1279.3134,62.9142,163.8978},//34
{2064.4,-1694.4,13.1,271.1561},//36
{-2712.7625,870.3005,70.5348,89.1608},//37
{1109.8,-968.0,42.7,0.0},//38
{2497.6274,-2025.6306,13.2521,355.4281}, //39
{2645.0,-1990.8,13.1,180.0},//40
{-2724.8965,914.8384,67.4253,110.1072},//41
{1910.5149,-1120.5304,25.4493,177.8350},//42
{828.8,-887.0,68.5,230.7095},//43
{2149.6,-1610.9,14.0,90.7904},//44
{760.1,-1687.8,4.3,180.6},//45
{645.5,-1616.1,14.9,0.0},//46
{-2635.2371,931.1931,71.5643,215.3709},//47
{-2665.9224,989.9724,64.6955,1.7814},//48
{959.5864,-901.0845,45.8584,177.3087},//49
{2445.8,-1326.8,23.6,18.4},//50
{2845.9,-1286.8,18.9,90.0},//51
{2159.8,-1803.9,13.3,271.4}, //52
{-2693.7847,132.3186,4.1676,89.5330},//53
{-2723.0105,977.7357,54.2926,359.9068},//54
{1514.0,-694.6,94.5,90.0},//55
{1246.7,-1107.6,25.5,266.4},//56
{831.7,-857.5,69.9,180.0},//57
{1007.9,-659.4,121.1,130.6194},//58
{1110.0,-726.4,100.1,90.0},//59
{259.7,-1221.0,74.7,202.0011},//60
{1463.7,-901.7,55.8,359.0},//61
{1440.1,-890.6,51.2,0.0},//62
{-2528.8298,2250.2998,4.8112,334.9590},//63
{-2554.7874,2270.5356,4.9064,333.9774}, //64
{-2371.1323,2438.4104,9.0698,159.2582},//65
{-2237.9492,893.7390,66.4872,89.7571},//66
{-2529.4817,-142.6608,19.7107,4.2929}, //67
{-2616.1897,-108.4479,4.1693,269.8246}//68
}

la linia //34 ai uitat o virgula , ti-am pus-o eu, copiaza codul de mai sus.

ir2tc1.png [url=http://forum.sa-mp.ro/filter-scripts-and-gamemode
Link to comment
Share on other sites

Guest raulika09

Da multumesc mult! Am rezolvat problema da a aparut alta. Terminatia..

new Float:HouseCarSpawns[68][4] = {
{2452.7283,-1049.5295,59.2484,175.7684},//1
{2064.4,-1694.4,13.1,271.1561},//2
{2137.6025,-1369.6079,24.3998,0.2954},//3
{1109.8,-968.0,42.7,0.0},//4
{2497.6274,-2025.6306,13.2521,355.4281}, //5
{2645.0,-1990.8,13.1,180.0},//6
{2379.0803,-1352.7295,23.8044,359.2548},//7
{1910.5149,-1120.5304,25.4493,177.8350},//8
{828.8,-887.0,68.5,230.7095},//9
{2149.6,-1610.9,14.0,90.7904},//10
{760.1,-1687.8,4.3,180.6},//11
{645.5,-1616.1,14.9,0.0},//12
{2135.6790,-1328.4812,25.3132,359.4437},//13
{1971.9521,-1674.3673,15.6250,267.4205},//14
{959.5864,-901.0845,45.8584,177.3087},//15
{2445.8,-1326.8,23.6,18.4},//16
{2845.9,-1286.8,18.9,90.0},//17
{2510.2065,-1686.6537,13.3436,40.9452}, //18
{2770.9866,-1319.6285,39.5358,269.3118},//19
{2812.3079,-1249.8522,46.6584,121.1268},//20
{1514.0,-694.6,94.5,90.0},//21
{1246.7,-1107.6,25.5,266.4},//22
{831.7,-857.5,69.9,180.0},//23
{1007.9,-659.4,121.1,130.6194},//24
{1110.0,-726.4,100.1,90.0},//25
{259.7,-1221.0,74.7,202.0011},//26
{1463.7,-901.7,55.8,359.0},//27
{1440.1,-890.6,51.2,0.0},//28
{2188.9983,-1808.7736,13.1800,359.5364},//29
{283.6283,-1160.9851,80.6183,225.7260}, //30
{931.5033,-852.6615,93.1273,22.2322},//31
{686.2572,-1072.3381,49.5535,62.7273},//32
{1372.7396,-1771.3641,13.3809,271.2759}, //33
{217.2901,-1279.3134,62.9142,163.8978},//34
{2064.4,-1694.4,13.1,271.1561},//36
{-2712.7625,870.3005,70.5348,89.1608},//37
{1109.8,-968.0,42.7,0.0},//38
{2497.6274,-2025.6306,13.2521,355.4281}, //39
{2645.0,-1990.8,13.1,180.0},//40
{-2724.8965,914.8384,67.4253,110.1072},//41
{1910.5149,-1120.5304,25.4493,177.8350},//42
{828.8,-887.0,68.5,230.7095},//43
{2149.6,-1610.9,14.0,90.7904},//44
{760.1,-1687.8,4.3,180.6},//45
{645.5,-1616.1,14.9,0.0},//46
{-2635.2371,931.1931,71.5643,215.3709},//47
{-2665.9224,989.9724,64.6955,1.7814},//48
{959.5864,-901.0845,45.8584,177.3087},//49
{2445.8,-1326.8,23.6,18.4},//50
{2845.9,-1286.8,18.9,90.0},//51
{2159.8,-1803.9,13.3,271.4}, //52
{-2693.7847,132.3186,4.1676,89.5330},//53
{-2723.0105,977.7357,54.2926,359.9068},//54
{1514.0,-694.6,94.5,90.0},//55
{1246.7,-1107.6,25.5,266.4},//56
{831.7,-857.5,69.9,180.0},//57
{1007.9,-659.4,121.1,130.6194},//58
{1110.0,-726.4,100.1,90.0},//59
{259.7,-1221.0,74.7,202.0011},//60
{1463.7,-901.7,55.8,359.0},//61
{1440.1,-890.6,51.2,0.0},//62
{-2528.8298,2250.2998,4.8112,334.9590},//63
{-2554.7874,2270.5356,4.9064,333.9774}, //64
{-2371.1323,2438.4104,9.0698,159.2582},//65
{-2237.9492,893.7390,66.4872,89.7571},//66
{-2529.4817,-142.6608,19.7107,4.2929}, //67
{-2616.1897,-108.4479,4.1693,269.8246}//68
};
Eroarea:
C:\Users\DIANA\Desktop\server lock2\gamemodes\123.pwn(1296) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
PS: Linia 1296 reprezinta:   
};

Link to comment
Share on other sites

new Float:HouseCarSpawns[67][4] = {
{2452.7283,-1049.5295,59.2484,175.7684},//1
{2064.4,-1694.4,13.1,271.1561},//2
{2137.6025,-1369.6079,24.3998,0.2954},//3
{1109.8,-968.0,42.7,0.0},//4
{2497.6274,-2025.6306,13.2521,355.4281}, //5
{2645.0,-1990.8,13.1,180.0},//6
{2379.0803,-1352.7295,23.8044,359.2548},//7
{1910.5149,-1120.5304,25.4493,177.8350},//8
{828.8,-887.0,68.5,230.7095},//9
{2149.6,-1610.9,14.0,90.7904},//10
{760.1,-1687.8,4.3,180.6},//11
{645.5,-1616.1,14.9,0.0},//12
{2135.6790,-1328.4812,25.3132,359.4437},//13
{1971.9521,-1674.3673,15.6250,267.4205},//14
{959.5864,-901.0845,45.8584,177.3087},//15
{2445.8,-1326.8,23.6,18.4},//16
{2845.9,-1286.8,18.9,90.0},//17
{2510.2065,-1686.6537,13.3436,40.9452}, //18
{2770.9866,-1319.6285,39.5358,269.3118},//19
{2812.3079,-1249.8522,46.6584,121.1268},//20
{1514.0,-694.6,94.5,90.0},//21
{1246.7,-1107.6,25.5,266.4},//22
{831.7,-857.5,69.9,180.0},//23
{1007.9,-659.4,121.1,130.6194},//24
{1110.0,-726.4,100.1,90.0},//25
{259.7,-1221.0,74.7,202.0011},//26
{1463.7,-901.7,55.8,359.0},//27
{1440.1,-890.6,51.2,0.0},//28
{2188.9983,-1808.7736,13.1800,359.5364},//29
{283.6283,-1160.9851,80.6183,225.7260}, //30
{931.5033,-852.6615,93.1273,22.2322},//31
{686.2572,-1072.3381,49.5535,62.7273},//32
{1372.7396,-1771.3641,13.3809,271.2759}, //33
{217.2901,-1279.3134,62.9142,163.8978},//34
{2064.4,-1694.4,13.1,271.1561},//36
{-2712.7625,870.3005,70.5348,89.1608},//37
{1109.8,-968.0,42.7,0.0},//38
{2497.6274,-2025.6306,13.2521,355.4281}, //39
{2645.0,-1990.8,13.1,180.0},//40
{-2724.8965,914.8384,67.4253,110.1072},//41
{1910.5149,-1120.5304,25.4493,177.8350},//42
{828.8,-887.0,68.5,230.7095},//43
{2149.6,-1610.9,14.0,90.7904},//44
{760.1,-1687.8,4.3,180.6},//45
{645.5,-1616.1,14.9,0.0},//46
{-2635.2371,931.1931,71.5643,215.3709},//47
{-2665.9224,989.9724,64.6955,1.7814},//48
{959.5864,-901.0845,45.8584,177.3087},//49
{2445.8,-1326.8,23.6,18.4},//50
{2845.9,-1286.8,18.9,90.0},//51
{2159.8,-1803.9,13.3,271.4}, //52
{-2693.7847,132.3186,4.1676,89.5330},//53
{-2723.0105,977.7357,54.2926,359.9068},//54
{1514.0,-694.6,94.5,90.0},//55
{1246.7,-1107.6,25.5,266.4},//56
{831.7,-857.5,69.9,180.0},//57
{1007.9,-659.4,121.1,130.6194},//58
{1110.0,-726.4,100.1,90.0},//59
{259.7,-1221.0,74.7,202.0011},//60
{1463.7,-901.7,55.8,359.0},//61
{1440.1,-890.6,51.2,0.0},//62
{-2528.8298,2250.2998,4.8112,334.9590},//63
{-2554.7874,2270.5356,4.9064,333.9774}, //64
{-2371.1323,2438.4104,9.0698,159.2582},//65
{-2237.9492,893.7390,66.4872,89.7571},//66
{-2529.4817,-142.6608,19.7107,4.2929}, //67
{-2616.1897,-108.4479,4.1693,269.8246}//68
};

Asta pt ca tu ai scris new Float:HouseCarSpawns[68][4] ceea ce inseamna ca housecarspawns are 68 de valori, insa la tine are doar 67. deci inlocuind 68 cu 67 ar trebui sa mearga. (am inlocuit eu mai  sus)

ir2tc1.png [url=http://forum.sa-mp.ro/filter-scripts-and-gamemode
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.