Array of locations, tried different things. Not working
#1

Alright, I've tried all sorts of solutions and can't find one that works.. I've tried so many that I can't even remember half of the things I tried... It's displaying the * You are not at a gas station to refuel.

Despite being at the correct coordinates and in range of those coordinates.

Any suggestions guys? Maybe I've done something wrong that I haven't noticed.

pawn Код:
//Gas Station Coordinates
new Float:GasStations[][] =
{
{-2410.0339, 976.2402, 45.4246},
{-2686.1143, 15.3380, 7.2126}
}

for(new i; i < sizeof(GasStations); i++)
{
        if(!IsPlayerInRangeOfPoint(playerid, 10.0, GasStations[i][0], GasStations[i][1], GasStations[i][2]))
        {
            SCM(playerid, COLOR_SNOW, "* You are not at a gas station to refuel.");
            return 1;
         } 
}
Reply


Messages In This Thread
Array of locations, tried different things. Not working - by LiamM - 15.02.2014, 11:59
Re: Array of locations, tried different things. Not working - by terrow - 15.02.2014, 12:05
Re: Array of locations, tried different things. Not working - by ColeMiner - 15.02.2014, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)