Aleksandr100297
Новичок
Ошибки:
error 021: symbol already defined: "GetPlayer2DZone"
symbol is never used: "GetCityName"
symbol is never used: "GetZonaName"
Сам код >
error 021: symbol already defined: "GetPlayer2DZone"
symbol is never used: "GetCityName"
symbol is never used: "GetZonaName"
Сам код >
Код:
GetPlayer2DZone(playerid, zone[], len)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i = 0; i != sizeof(gSAZones); i++ )
{
if(x >= gSAZones[SAZONE_AREA][0] && x <= gSAZones[SAZONE_AREA][3] && y >= gSAZones[SAZONE_AREA][1] && y <= gSAZones[SAZONE_AREA][4]) return format(zone, len, gSAZones[SAZONE_NAME], 0);
}
return false;
}
GetZonaName ( Float: x, Float: y )
{
for ( new i = 0; i != sizeof ( gSAZones ); i++ )
{
if ( x >= gSAZones[SAZONE_AREA][0] && x <= gSAZones[SAZONE_AREA][3] && y >= gSAZones[SAZONE_AREA][1] && y <= gSAZones[SAZONE_AREA][4]) return i;
}
return true;
}
GetCityName ( Float: x, Float: y)
{
for ( new i = 0; i != sizeof ( gSAZonesCity ); i++ )
{
if ( x >= gSAZonesCity[SAZONE_AREA][0] && x <= gSAZonesCity[SAZONE_AREA][3] && y >= gSAZonesCity[SAZONE_AREA][1] && y <= gSAZonesCity[SAZONE_AREA][4] ) return i;
}
return true;
}
Последнее редактирование модератором:
