18.08.2013, 14:52
I have a tag mismatch warning but the script works fine. I just need to know what to edit:
It works tho. TeleMenuString contains the zone_name (as I wanted) but there is the warning. The warning is because of zones[i][0].
pawn Код:
enum zoneinfo {
zone_name[27],
Float:zone_minx,
Float:zone_miny,
Float:zone_minz,
Float:zone_maxx,
Float:zone_maxy,
Float:zone_maxz
}
new Float:zones[][zoneinfo] = {
{ "LV Drug House (Int)", 2363.7732, -1135.5873, 1050.8750, 2366.7190, -1125.8083, 1050.8826},
{ "Alcatraz", 3539.1328, 382.3327, -5.0000, 4085.4063, 560.8972, 500.5000},
{ "Alcatraz (Int)", 240.3424, 107.4418, 998.0156, 260.3839, 119.8392, 1008.8303},
{ "Alcatraz (Int)", 213.9791, 107.4416, 999.0100, 229.0557, 116.0217, 999.0180}};
pawn Код:
public OnGameModeInit();
{
for(new i; i < sizeof(zones); i++)
{
format(TeleMenuString,sizeof(TeleMenuString),"%s\n%s",TeleMenuString,zones[i][0]); //warning
}
return 1;
}