Array error
#1

Bom galera. Eu estou trabalhando em um gamemode no qual ele tera gangzones.
So que na variavel para guardar as posiзхes da gangzona(minx, miny, maxx, maxy) esta dando um erro terrivel.

Alguem tem um jeito para isso?

Код:
enum ffzona {
	Float:mmx,
	Float:mmy,
	Float:mx,
	Float:my
};

new FZona[ffzona][MAX_GZONES]= {
	1988.037, -1764.764, 2189.587, -1583.168
	2322.686, -1737.13, 2512.828, -1630.541,
	2364.517, -1448.945, 2626.913, -1259.454,
	2360.715, -1255.506, 2695.364, -1176.551,
	2071.699, -1385.781, 2273.249, -1105.492,
	1843.529, -1287.088, 2071.699, -1125.23,
	1813.106, -1950.308, 1969.022, -1752.921,
	1820.712, -1760.817, 1950.008, -1598.959,
	1444.231, -1322.617, 1729.444, -1152.865,
	1463.245, -1452.893, 1729.444, -1302.879,
	2402.546, -2064.793, 2706.773, -1934.517,
	2702.97, -2056.897, 2794.238, -1910.831,
	1128.596, -2112.166, 1299.723, -2001.629,
	1436.625, -1748.974, 1543.105, -1587.116,
	1314.935, -1741.078, 1444.231, -1571.325
};
Код:
D:\DIOGO\SAMP Servidor\gamemodes\thewars.pwn(53) : error 001: expected token: ";", but found "-rational value-"
D:\DIOGO\SAMP Servidor\gamemodes\thewars.pwn(67) : error 010: invalid function or declaration
Код:
53: 	2322.686, -1737.13, 2512.828, -1630.541,
67: };
Thanks
Reply
#2

This is an english speaking forum

pawn Код:
new FZona[MAX_GZONES][ffzona]= {
    1988.037, -1764.764, 2189.587, -1583.168,
    2322.686, -1737.13, 2512.828, -1630.541,
    2364.517, -1448.945, 2626.913, -1259.454,
    2360.715, -1255.506, 2695.364, -1176.551,
    2071.699, -1385.781, 2273.249, -1105.492,
    1843.529, -1287.088, 2071.699, -1125.23,
    1813.106, -1950.308, 1969.022, -1752.921,
    1820.712, -1760.817, 1950.008, -1598.959,
    1444.231, -1322.617, 1729.444, -1152.865,
    1463.245, -1452.893, 1729.444, -1302.879,
    2402.546, -2064.793, 2706.773, -1934.517,
    2702.97, -2056.897, 2794.238, -1910.831,
    1128.596, -2112.166, 1299.723, -2001.629,
    1436.625, -1748.974, 1543.105, -1587.116,
    1314.935, -1741.078, 1444.231, -1571.325
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)