SA-MP Forums Archive
Coordinate problem - 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: Coordinate problem (/showthread.php?tid=428575)



Coordinate problem - Lorenzosdm - 06.04.2013

I got this warning if i try to compile my coordinates for gangzones

pawn Код:
101) : warning 213: tag mismatch
101) : warning 213: tag mismatch
101) : warning 213: tag mismatch
101) : warning 213: tag mismatch
101) : warning 227: more initiallers than enum fields
101) : warning 227: more initiallers than enum fields
101) : warning 227: more initiallers than enum fields
101) : warning 227: more initiallers than enum fields
101) : error 018: initialization data exceeds declared size
Here the line:
pawn Код:
new ZoneInfo[][eZone] = {
    {2337.9004, -1808.8383,2590.2043,-1610.3673,TEAM_CRAZY},  //101
    {2216,207, -1752,921, 2524,237, -1634,489,TEAM_BEAST},  //102
    {1972,825, -1910,831, 2204,798, -1263,401,TEAM_ADMIN} // 103



Re: Coordinate problem - MattyG - 06.04.2013

Show us your eZone enum


Re: Coordinate problem - Lorenzosdm - 06.04.2013

pawn Код:
enum eZone
{
    Float:zMinX,
    Float:zMinY,
    Float:zMaxX,
    Float:zMaxY,
    zTeam
}



Re: Coordinate problem - MattyG - 06.04.2013

You're missing a } at the end of the ZoneInfo array.