Convert
#1

It's possibile to convert this stock:

pawn Код:
stock GetZoneName(Float: x, Float: y, Float: z)
{
    new zone[28];
    for(new i = 0; i < sizeof(SAZones); i++)
    {
        if(x >= SAZones[i][SAZONE_AREA][0] && x <= SAZones[i][SAZONE_AREA][3] && y >= SAZones[i][SAZONE_AREA][1] && y <= SAZones[i][SAZONE_AREA][4] && z >= SAZones[i][SAZONE_AREA][2] && z <= SAZones[i][SAZONE_AREA][5])
        {
            strcat(zone, SAZones[i][SAZONE_NAME]);
            return zone;
        }
    }

    strcat(zone, "Unknown");
    return zone;
}
To return the zone name of the player? Currently it works only with x, y and z floats, but i need it for the player pos.

I could add GetPlayerPos then use that stocks but is stupid...is there a way to convert it?
Reply


Messages In This Thread
Convert - by KinderClans - 02.10.2018, 16:37
Re: Convert - by Alexis17 - 02.10.2018, 16:48
Re: Convert - by NaS - 02.10.2018, 16:53
Re: Convert - by KinderClans - 02.10.2018, 17:01
Re: Convert - by KinderClans - 05.10.2018, 08:51

Forum Jump:


Users browsing this thread: 3 Guest(s)