i have a error in my script
#1

Ok Look this is the code:
Код:
new Float:gMaps[25][0];
CreateObject{1946,2491.099365,-1683.394409,12.542631,0.000000,0.000000,0.000000};
{16271,1904.390991,-2278.352294,26.715740,0.000000,0.000000,0.000000};
{420,1806.722656,-1923.280761,13.240963,0.000000,0.000000,0.000000};
{420,1806.951538,-1912.070068,13.420684,0.000000,0.000000,0.000000};
{14560,1779.069335,-1922.968505,16.876194,0.000000,0.000000,0.000000};
{3031,1780.131835,-1915.404296,13.993168,0.000000,0.000000,0.000000};
{2287,1755.295166,-1943.301269,12.570794,0.000000,0.000000,0.000000};
{2112,1790.232910,-1923.936279,12.782875,0.000000,0.000000,0.000000};
{2112,1795.451293,-1924.293457,12.782699,0.000000,0.000000,0.000000};
{2112,1795.832885,-1916.971679,12.786275,0.000000,0.000000,0.000000};
{2112,1791.435791,-1917.935546,12.785804,0.000000,0.000000,0.000000};
{1768,1785.851440,-1908.762817,12.393603,0.000000,0.000000,0.000000};
{1766,1789.010742,-1908.825805,12.395917,0.000000,0.000000,0.000000};
{14820,1795.945556,-1909.316162,12.507512,0.000000,0.000000,0.000000};
{1429,1794.546875,-1912.423583,13.518214,0.000000,0.000000,0.000000};
{2112,1794.570678,-1912.099731,12.788654,0.000000,0.000000,0.000000};
{2168,1798.652465,-1916.429443,12.394310,0.000000,0.000000,0.000000};
{2168,1798.644775,-1917.612304,12.393733,0.000000,0.000000,0.000000};
{2168,1798.662109,-1918.786499,12.393159,0.000000,0.000000,0.000000};
{2168,1798.631591,-1919.980957,12.392576,0.000000,0.000000,0.000000};
{2187,1798.717773,-1921.121093,12.392019,0.000000,0.000000,0.000000};
{2168,1798.320190,-1924.945312,13.644304,0.000000,0.000000,0.000000};
{2168,1798.801513,-1923.415527,12.390898,0.000000,0.000000,0.000000};
{2168,1798.800781,-1924.579833,12.390330,0.000000,0.000000,0.000000};
{2168,1798.754882,-1925.444580,12.389907,0.000000,0.000000,0.000000};
When i complie i get this error:
Код:
D:\sv\gamemodes\RO.pwn(363) : error 010: invalid function or declaration
Reply
#2

CreateObject{1946,2491.099365,-1683.394409,12.542631,0.000000,0.000000,0.000000};
CreateObject{16271,1904.390991,-2278.352294,26.715740,0.000000,0.000000,0.000000};
CreateObject{420,1806.722656,-1923.280761,13.240963,0.000000,0.000000,0.000000};
CreateObject{420,1806.951538,-1912.070068,13.420684,0.000000,0.000000,0.000000};
CreateObject{14560,1779.069335,-1922.968505,16.876194,0.000000,0.000000,0.000000};
CreateObject{3031,1780.131835,-1915.404296,13.993168,0.000000,0.000000,0.000000};
CreateObject{2287,1755.295166,-1943.301269,12.570794,0.000000,0.000000,0.000000};
CreateObject{2112,1790.232910,-1923.936279,12.782875,0.000000,0.000000,0.000000};
CreateObject{2112,1795.451293,-1924.293457,12.782699,0.000000,0.000000,0.000000};
CreateObject{2112,1795.832885,-1916.971679,12.786275,0.000000,0.000000,0.000000};
CreateObject{2112,1791.435791,-1917.935546,12.785804,0.000000,0.000000,0.000000};
CreateObject{1768,1785.851440,-1908.762817,12.393603,0.000000,0.000000,0.000000};
CreateObject{1766,1789.010742,-1908.825805,12.395917,0.000000,0.000000,0.000000};
CreateObject{14820,1795.945556,-1909.316162,12.507512,0.000000,0.000000,0.000000};
CreateObject{1429,1794.546875,-1912.423583,13.518214,0.000000,0.000000,0.000000};
CreateObject{2112,1794.570678,-1912.099731,12.788654,0.000000,0.000000,0.000000};
CreateObject{2168,1798.652465,-1916.429443,12.394310,0.000000,0.000000,0.000000};
CreateObject{2168,1798.644775,-1917.612304,12.393733,0.000000,0.000000,0.000000};
CreateObject{2168,1798.662109,-1918.786499,12.393159,0.000000,0.000000,0.000000};
CreateObject{2168,1798.631591,-1919.980957,12.392576,0.000000,0.000000,0.000000};
CreateObject{2187,1798.717773,-1921.121093,12.392019,0.000000,0.000000,0.000000};
CreateObject{2168,1798.320190,-1924.945312,13.644304,0.000000,0.000000,0.000000};
CreateObject{2168,1798.801513,-1923.415527,12.390898,0.000000,0.000000,0.000000};
CreateObject{2168,1798.800781,-1924.579833,12.390330,0.000000,0.000000,0.000000};
CreateObject{2168,1798.754882,-1925.444580,12.389907,0.000000,0.000000,0.000000};



TRY ITS ))
Reply
#3

are you tring to store them into variable or use createobject?
if you want to use createobject simply replace {} with () (all lines must have CreateObject before them too)
Reply
#4

tronix096 i tried your suggestion but the error is still there:

Код:
D:\sv\scriptfiles\party-unity.pwn(1) : error 010: invalid function or declaration
Reply
#5

help me pls
Reply
#6

pawn Код:
new gMapsID[25][1] =
{
    {1946},
    {16271},
    {420},
    {420},
    {14560},
    {3031},
    {2287},
    {2112},
    {2112},
    {2112},
    {2112},
    {1768},
    {1766},
    {14820},
    {1429},
    {2112},
    {2168},
    {2168},
    {2168},
    {2168},
    {2187},
    {2168},
    {2168},
    {2168},
    {2168}
   
};
pawn Код:
new Float:gMaps[25][6] =
{
    {2491.099365,-1683.394409,12.542631,0.000000,0.000000,0.000000},
    {1904.390991,-2278.352294,26.715740,0.000000,0.000000,0.000000},
    {1806.722656,-1923.280761,13.240963,0.000000,0.000000,0.000000},
    {1806.951538,-1912.070068,13.420684,0.000000,0.000000,0.000000},
    {1779.069335,-1922.968505,16.876194,0.000000,0.000000,0.000000},
    {1780.131835,-1915.404296,13.993168,0.000000,0.000000,0.000000},
    {1755.295166,-1943.301269,12.570794,0.000000,0.000000,0.000000},
    {1790.232910,-1923.936279,12.782875,0.000000,0.000000,0.000000},
    {1795.451293,-1924.293457,12.782699,0.000000,0.000000,0.000000},
    {1795.832885,-1916.971679,12.786275,0.000000,0.000000,0.000000},
    {1791.435791,-1917.935546,12.785804,0.000000,0.000000,0.000000},
    {1785.851440,-1908.762817,12.393603,0.000000,0.000000,0.000000},
    {1789.010742,-1908.825805,12.395917,0.000000,0.000000,0.000000},
    {1795.945556,-1909.316162,12.507512,0.000000,0.000000,0.000000},
    {1794.546875,-1912.423583,13.518214,0.000000,0.000000,0.000000},
    {1794.570678,-1912.099731,12.788654,0.000000,0.000000,0.000000},
    {1798.652465,-1916.429443,12.394310,0.000000,0.000000,0.000000},
    {1798.644775,-1917.612304,12.393733,0.000000,0.000000,0.000000},
    {1798.662109,-1918.786499,12.393159,0.000000,0.000000,0.000000},
    {1798.631591,-1919.980957,12.392576,0.000000,0.000000,0.000000},
    {1798.717773,-1921.121093,12.392019,0.000000,0.000000,0.000000},
    {1798.320190,-1924.945312,13.644304,0.000000,0.000000,0.000000},
    {1798.801513,-1923.415527,12.390898,0.000000,0.000000,0.000000},
    {1798.800781,-1924.579833,12.390330,0.000000,0.000000,0.000000},
    {1798.754882,-1925.444580,12.389907,0.000000,0.000000,0.000000}
};
pawn Код:
for(new i = 0; i < sizeof(gMapsID); i++)
{
    CreateObject(gMapsID[i][0],gMaps[i][0],gMaps[i][1],gMaps[i][2],gMaps[i][3],gMaps[i][4],gMaps[i][5], 250);
}
Not tested, but it compiles.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)