SA-MP Forums Archive
error 001 , 029 HELP PLS - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 001 , 029 HELP PLS (/showthread.php?tid=562547)



error 001 , 029 HELP PLS - SvetkoBeast - 09.02.2015

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);




Re: error 001 , 029 HELP PLS - HazardouS - 09.02.2015

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


Re: error 001 , 029 HELP PLS - SvetkoBeast - 09.02.2015

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


Re: error 001 , 029 HELP PLS - HazardouS - 09.02.2015

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


Re: error 001 , 029 HELP PLS - SvetkoBeast - 10.02.2015

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,)


Re: error 001 , 029 HELP PLS - Tamy - 10.02.2015

You probably mistyped ; instead of { on second line.


Re: error 001 , 029 HELP PLS - bradleyofniet - 10.02.2015

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



Re: error 001 , 029 HELP PLS - SvetkoBeast - 10.02.2015

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


Re: error 001 , 029 HELP PLS - Maximus0 - 10.02.2015

Код:
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.


Re: error 001 , 029 HELP PLS - SvetkoBeast - 12.02.2015

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 ?