error 001 , 029 HELP PLS
#1

Hi guys i gon 5 errors and can't fix them.. Can you help me please:

error 001: expected token: ";", but found "]"
(61) : fatal error 107: too many error messages on one line
(61) : error 001: expected token: ";", but found "["
(61) : error 029: invalid expression, assumed zero
(27) : error 001: expected token: ";", but found ")"

Line 61 : ZoneID[i][0] = GangZoneCreate(ZoneInfo[i][0][zMinY], ZoneInfo[i][0][zMinY], ZoneInfo[i][0][zMaxX], ZoneInfo[i][0][zMaxY]);
}

Line 27 : enum eZone);

Reply
#2

pawn Код:
enum eZone
{
//variables
};
This is the correct syntax for an enum.
Reply
#3

Quote:
Originally Posted by HazardouS
Посмотреть сообщение
pawn Код:
enum eZone
{
//variables
};
This is the correct syntax for an enum.
It doesn't work..
Reply
#4

Show me the whole "enum eZone" definition and 1-2 lines above and below line 61.
Reply
#5

Quote:
Originally Posted by HazardouS
Посмотреть сообщение
Show me the whole "enum eZone" definition and 1-2 lines above and below line 61.
enum eZone
;
Float:zMinX,
Float:zMinY,
Float:zMaxX,
Float:zMaxY,
zTeam
}
new ZoneInfo[][eZone] = {
{2337.9004,-1808.8383,2590.2043,-1610.3673,TEAM_GROVE},
{2084.7,-1808.8383,2337.9004,-1610.3673,TEAM_BALLAS},
{2590.2043,-1808.8383,2842.3,-1610.3673,TEAM_VAGOS}
};

================================================== =
ZoneID[i][0] = GangZoneCreate(ZoneInfo[i][0][zMinY], ZoneInfo[i][0][zMinY], ZoneInfo[i][0][zMaxX], ZoneInfo[i][0][zMaxY]);
}
SetGameModeText("Turf War System bY: Winner");
SetTimer("ZoneTimer", 1000, true);
return 1;
}

New Error - 29) : error 010: invalid function or declaration (Float:zMinX,)
Reply
#6

You probably mistyped ; instead of { on second line.
Reply
#7

Try this:
Код:
enum eZone
{
Float:zMinX,
Float:zMinY,
Float:zMaxX,
Float:zMaxY,
zTeam
};
Reply
#8

Quote:
Originally Posted by bradleyofniet
Посмотреть сообщение
Try this:
Код:
enum eZone
{
Float:zMinX,
Float:zMinY,
Float:zMaxX,
Float:zMaxY,
zTeam
};
error 001: expected token: ";", but found "{"
Reply
#9

Код:
1.| enum eZone
2.| {   //Check this line
3.|     Float:zMinX,
4.|     Float:zMinY,
5.|     Float:zMaxX,
6.|     Float:zMaxY,
7.|     zTeam
8.| };
Check if you are actually getting the error for line #2. I have compiled this code on my gamemode and works as it should.
Reply
#10

Quote:
Originally Posted by Maximus0
Посмотреть сообщение
Код:
1.| enum eZone
2.| {   //Check this line
3.|     Float:zMinX,
4.|     Float:zMinY,
5.|     Float:zMaxX,
6.|     Float:zMaxY,
7.|     zTeam
8.| };
Check if you are actually getting the error for line #2. I have compiled this code on my gamemode and works as it should.
Maybe i need new pawno ot include ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)