08.03.2013, 08:02
I have this
Errors/Warnings
pawn Код:
//top
#define ArmyZoneID 4
#define TerrorZoneID 5
#define MafiaZoneID 6
enum gzInfo
{
Float:MinX,
Float:MinY,
Float:MaxX,
Float:MaxY,
ZoneID
}
new GangZone[][gzInfo] =
{
{49.7817, 1663.5907, 404.7234, 2120.2429, ArmyZoneID},
{-769.4115, 2157.6770, -321.8503, 2339.4497, MafiaZoneID},
{-346.4589, 2546.4268, -0.6197, 2816.84625, TerrorZoneID},
//and so on...
}
//gamemodeinit
for(new gz = 0; gz < sizeof(GangZone); gz++)
{
GangZoneCreate(GangZone[gz][MinX],GangZone[gz][MinY],GangZone[gz][MaxX],GangZone[gz][MaxY]);
}
//onplayerconnect
for(new gz = 0; gz < sizeof(GangZone); gz++)
{
GangZoneShowForPlayer(playerid,GangZone[gz][ArmyZoneID],0x0000FF55); //errors
GangZoneShowForPlayer(playerid,GangZone[gz][TerrorZoneID],0xFF000055); //errors
GangZoneShowForPlayer(playerid,GangZone[gz][MafiaZoneID],0xFF800055); //errors
}
Код:
warning 213: tag mismatch warning 213: tag mismatch error 032: array index out of bounds (variable "GangZone") warning 213: tag mismatch error 032: array index out of bounds (variable "GangZone")