Problem
#1

I tried to put gang wars and the compiler gave me these errors:

Код:
C:\DOCUME~1\YOO~1.BOG\Desktop\GMarea.pwn(871) : warning 227: more initiallers than enum fields
C:\DOCUME~1\YOO~1.BOG\Desktop\GMarea.pwn(871) : warning 227: more initiallers than enum fields
C:\DOCUME~1\YOO~1.BOG\Desktop\GMarea.pwn(871) : error 018: initialization data exceeds declared size
Код:
Line 870 - new turfs[ MAX_TURFS ][ tinfo ] = {
Line 871 - { 0, "Teritoriu test 1",		-2152.1370, 453.5426, -2256.4297, 311.6571, 	COLOR_LCN, 		TEAM_LCN, 		-1, 0, 0, 0, 0},
Line 872 - { 1, "Teritoriu test 2",		-2232.5850, 557.8677, -2270.4775, 505.1086, 	COLOR_YKZ,    	TEAM_YAKUZA,    -1, 0, 0, 0, 0},
Line 873 - { 2, "Teritoriu test 3",		1950.0757, -1490.8329, 2018.2412, -1524.2738, 	COLOR_BZ,     	TEAM_BLOODS,    -1, 0, 0, 0, 0},
Line 874 - { 3, "Teritoriu test 4",		2015.9913, -1490.9977, 2107.1101, -1547.4563, 	COLOR_CZ,     	TEAM_CRIPS,     -1, 0, 0, 0, 0},
Line 875 - { 4, "Teritoriu test 5",		-2264.6074, 41.5349, -2364.7419, -63.2344, 		COLOR_NZ,     	TEAM_NORTENOS,  -1, 0, 0, 0, 0},
Line 876 - { 5, "Teritoriu test 6",		-2307.0930, 207.2701, -2354.6951, 143.3164, 	COLOR_SZ,    	TEAM_SURENOS,   -1, 0, 0, 0, 0}
Line 877 - };
Please help me
Reply
#2

Can we help me? please
Reply
#3

Your array won't support 10 dimensions. Pawn only supports 4.
Reply
#4

your enum initialisation should look like this:
Код:
enum tinfo{
	integer,
	name[32],
	Float,
	Float,
	Float,
	Float,
	Int,
	Int,
	Int,
	Int,
	Int,
	Int,
	Int
}
...you added something into the turfs[], and forgot to change its specifications in the enum, and/or
MAX_TURFS you need to set the amount as big as the flields amount. here its:
Код:
#define MAX_TURFS 3 //or new MAX_TURFS=3;//however you declared it
the enum example above was derived by counting and defining your data, compare it to yours, youll find the issue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)