Ort wird nicht angezeigt?

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Wenn ich mich irgendwo befinde, seh ich es nicht.


    #if defined _zones_included
    #endinput
    #endif
    #define _zones_included


    #define MAX_ZONE_NAME 38


    enum SAZONE_MAIN
    {
    SAZONE_NAME[38],
    Float:SAZONE_AREA[6]
    };


    static const gSANZones[][SAZONE_MAIN] = { //Zonen


    {"The Big Ear, Bone County", {-410.00,1403.30,-3.00,-137.90,1681.20,200.00}},


    Habe natürlich mehr Orte, wollt nur wissen was ich falsch mache, das es nicht klappt.


    Und unten habe ich das:


    stock GetPlayer2DZone(playerid, zone[], len)
    {
    new Float:x22, Float:y22, Float:z22;
    GetPlayerPos(playerid, x22, y22, z22);
    for(new i = 0; i != sizeof(gSANZones); i++ )
    {
    if(x22 >= gSANZones[i][SAZONE_AREA][0] && x22 <= gSANZones[i][SAZONE_AREA][3] && y22 >= gSANZones[i][SAZONE_AREA][1] && y22 <= gSANZones[i][SAZONE_AREA][4])
    {
    return format(zone, len, gSANZones[i][SAZONE_NAME], 0);
    }
    }
    return 0;
    }


    stock GetPlayer2DRadarZone(playerid, zone[], len)
    {
    new Float:x22, Float:y22, Float:z22;
    GetPlayerPos(playerid, x22, y22, z22);
    for(new i = 0; i != sizeof(gSAZones); i++ )
    {
    if(x22 >= gSAZones[i][SAZONE_AREA][0] && x22 <= gSAZones[i][SAZONE_AREA][3] && y22 >= gSAZones[i][SAZONE_AREA][1] && y22 <= gSAZones[i][SAZONE_AREA][4])
    {
    return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
    }
    }
    return 0;
    }


    stock GetVehicle2DZone(vehicleid, zone[], len)
    {
    new Float:x22, Float:y22, Float:z22;
    GetVehiclePos(vehicleid, x22, y22, z22);
    for(new i = 0; i != sizeof(gSANZones); i++ )
    {
    if(x22 >= gSANZones[i][SAZONE_AREA][0] && x22 <= gSANZones[i][SAZONE_AREA][3] && y22 >= gSANZones[i][SAZONE_AREA][1] && y22 <= gSANZones[i][SAZONE_AREA][4])
    {
    return format(zone, len, gSANZones[i][SAZONE_NAME], 0);
    }
    }
    return 0;
    }


    stock GetPlayer3DZone(playerid, zone[], len)
    {
    new Float:x33, Float:y33, Float:z33;
    GetPlayerPos(playerid, x33, y33, z33);
    for(new i = 0; i != sizeof(gSAZones); i++ )
    {
    if(x33 >= gSAZones[i][SANZONE_AREA][0] && x33 <= gSAZones[i][SANZONE_AREA][3] && y33 >= gSANZones[i][SAZONE_AREA][1] && y33 <= gSANZones[i][SAZONE_AREA][4] && z33 >= gSAZones[i][SANZONE_AREA][2] && z33 <= gSANZones[i][SAZONE_AREA][5])
    {
    return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
    }
    }
    return 0;
    }



    stock IsPlayerInZone(playerid, zone[])
    {
    new TmpZone[MAX_ZONE_NAME];
    GetPlayer3DZone(playerid, TmpZone, sizeof(TmpZone));
    for(new i = 0; i != sizeof(gSANZones); i++)
    {
    if(strfind(TmpZone, zone, true) != -1)
    return 1;
    }
    return 0;
    }