I cant Add any More lines Of duty points anymore
#2

Use an array and a loop. And stop using godforsaken godfather edits.

pawn Код:
static const Float:dutyPoints[][3] = {
    {220.4274,74.9089,1005.0391},
    {1345.89,521.74,1067.76},
    // you get the point
};
Add that on top or in the command, depending on if you want to use these locations elsewhere.

pawn Код:
new
    bool:found;

for(new i; i < sizeof(dutyPoints); i++)
{
    if(IsPlayerInRangeOfPoint(playerid, 6, dutyPoints[i][0], dutyPoints[i][1], dutyPoints[i][2]))
    {
        found = true;
        break;
    }
}

if(found)
{
    // stuff if they're in range
}
Reply


Messages In This Thread
I cant Add any More lines Of duty points anymore - by kepa333 - 29.06.2012, 23:42
Re: I cant Add any More lines Of duty points anymore - by Vince - 29.06.2012, 23:51
Re: I cant Add any More lines Of duty points anymore - by kepa333 - 30.06.2012, 00:02

Forum Jump:


Users browsing this thread: 2 Guest(s)