Tag mismatch with arrays and enums
#1

Code:
#define TEAM_GROVE 0
#define TEAM_BALLA 1
#define TEAM_POLICE 2
#define TEAM_MAFIA 3
#define TEAM_HOBO 4
#define TEAM_TRIAD 5
#define TEAM_VAGOS 6
#define TEAM_ARMY 7
#define TEAM_BIKER 8


...


enum E_CLASS_SPAWNS
{
	spawnTeam,
	spawnSkin,
	Float:spawnX,
	Float:spawnY,
	Float:spawnZ,
	Float:spawnR,
	spawnWep1,
	spawnAmmo1,
	spawnWep2,
	spawnAmmo2,
	spawnWep3,
	spawnAmmo3
}
	
new classSpawns[][E_CLASS_SPAWNS] =
{TEAM_GROVE,107,2528.6218,-1649.6116,14.4349,110.3689,0,0,0,0,0,0}, // Four tag mismatches appear on this line , I'm guessing the floats even though that's what they are suppose to be.
{TEAM_GROVE,106,2526.9050,-1681.1530,19.9302,67.9174,0,0,0,0,0,0},
{TEAM_GROVE,105,2459.5757,-1690.1639,13.5429,354.8056,0,0,0,0,0,0},
{TEAM_BALLA,104,2139.6638,-1674.5215,15.0859,265.8720,0,0,0,0,0,0},
{TEAM_BALLA,102,2159.4695,-1650.3561,15.0859,230.2721,0,0,0,0,0,0},
{TEAM_BALLA,103,2154.4636,-1706.7101,15.0859,301.3122,0,0,0,0,0,0},
{TEAM_POLICE,280,1548.9541,-1669.6421,13.5653,92.3896,0,0,0,0,0,0},
{TEAM_POLICE,281,1549.5511,-1681.3722,13.5564,91.6990,0,0,0,0,0,0},
{TEAM_POLICE,285,1554.3741,-1675.6704,16.6953,89.4417,0,0,0,0,0,0},
{TEAM_MAFIA,111,1473.2941,-1404.8208,11.8828,142.0838,0,0,0,0,0,0},
{TEAM_MAFIA,120,1494.0481,-1421.7042,11.8883,155.8302,0,0,0,0,0,0},
{TEAM_MAFIA,124,1469.9873,-1425.2419,11.8828,134.4188,0,0,0,0,0,0},
{TEAM_HOBO,134,1607.0878,-1522.5104,13.6106,70.9729,0,0,0,0,0,0},
{TEAM_HOBO,135,1607.0878,-1522.5104,13.6106,70.9729,0,0,0,0,0,0},
{TEAM_HOBO,137,1607.0878,-1522.5104,13.6106,70.9729,0,0,0,0,0,0},
{TEAM_TRIAD,117,1767.4541,-1363.8601,15.7578,276.0658,0,0,0,0,0,0},
{TEAM_TRIAD,118,1767.4541,-1363.8601,15.7578,276.0658,0,0,0,0,0,0},
{TEAM_TRIAD,123,1767.4541,-1363.8601,15.7578,276.0658,0,0,0,0,0,0},
{TEAM_VAGOS,108,2399.7388,-1222.6620,25.8231,262.4682,0,0,0,0,0,0},
{TEAM_VAGOS,109,2411.8125,-1268.1117,24.2042,350.3537,0,0,0,0,0,0},
{TEAM_VAGOS,110,2382.6599,-1251.0063,23.8788,253.0338,0,0,0,0,0,0},
{TEAM_ARMY,287,2735.7529,-2451.4019,17.5938,249.8290,0,0,0,0,0,0},
{TEAM_BIKER,100,1930.0078,-1776.4049,13.5469,279.8561,0,0,0,0,0,0},
{TEAM_BIKER,247,1930.0078,-1776.4049,13.5469,279.8561,0,0,0,0,0,0},
{TEAM_BIKER,248,1930.0078,-1776.4049,13.5469,279.8561,0,0,0,0,0,0}
Any ideas what I'm doing wrong? Probably something stupid.
Reply
#2

pawn Code:
new classSpawns[][E_CLASS_SPAWNS] = {
{TEAM_GROVE,107,2528.6218,-1649.6116,14.4349,110.3689,0,0,0,0,0,0},
{TEAM_GROVE,106,2526.9050,-1681.1530,19.9302,67.9174,0,0,0,0,0,0},
{TEAM_GROVE,105,2459.5757,-1690.1639,13.5429,354.8056,0,0,0,0,0,0},
{TEAM_BALLA,104,2139.6638,-1674.5215,15.0859,265.8720,0,0,0,0,0,0},
{TEAM_BALLA,102,2159.4695,-1650.3561,15.0859,230.2721,0,0,0,0,0,0},
{TEAM_BALLA,103,2154.4636,-1706.7101,15.0859,301.3122,0,0,0,0,0,0},
{TEAM_POLICE,280,1548.9541,-1669.6421,13.5653,92.3896,0,0,0,0,0,0},
{TEAM_POLICE,281,1549.5511,-1681.3722,13.5564,91.6990,0,0,0,0,0,0},
{TEAM_POLICE,285,1554.3741,-1675.6704,16.6953,89.4417,0,0,0,0,0,0},
{TEAM_MAFIA,111,1473.2941,-1404.8208,11.8828,142.0838,0,0,0,0,0,0},
{TEAM_MAFIA,120,1494.0481,-1421.7042,11.8883,155.8302,0,0,0,0,0,0},
{TEAM_MAFIA,124,1469.9873,-1425.2419,11.8828,134.4188,0,0,0,0,0,0},
{TEAM_HOBO,134,1607.0878,-1522.5104,13.6106,70.9729,0,0,0,0,0,0},
{TEAM_HOBO,135,1607.0878,-1522.5104,13.6106,70.9729,0,0,0,0,0,0},
{TEAM_HOBO,137,1607.0878,-1522.5104,13.6106,70.9729,0,0,0,0,0,0},
{TEAM_TRIAD,117,1767.4541,-1363.8601,15.7578,276.0658,0,0,0,0,0,0},
{TEAM_TRIAD,118,1767.4541,-1363.8601,15.7578,276.0658,0,0,0,0,0,0},
{TEAM_TRIAD,123,1767.4541,-1363.8601,15.7578,276.0658,0,0,0,0,0,0},
{TEAM_VAGOS,108,2399.7388,-1222.6620,25.8231,262.4682,0,0,0,0,0,0},
{TEAM_VAGOS,109,2411.8125,-1268.1117,24.2042,350.3537,0,0,0,0,0,0},
{TEAM_VAGOS,110,2382.6599,-1251.0063,23.8788,253.0338,0,0,0,0,0,0},
{TEAM_ARMY,287,2735.7529,-2451.4019,17.5938,249.8290,0,0,0,0,0,0},
{TEAM_BIKER,100,1930.0078,-1776.4049,13.5469,279.8561,0,0,0,0,0,0},
{TEAM_BIKER,247,1930.0078,-1776.4049,13.5469,279.8561,0,0,0,0,0,0},
{TEAM_BIKER,248,1930.0078,-1776.4049,13.5469,279.8561,0,0,0,0,0,0}
};
Reply
#3

Yep, something stupid. Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)