A problem
#7

Quote:
Originally Posted by Kasichok
View Post
Code:
for(new j; j < MAX_RANDOM_SPAWNS; j++)
{
    if(IsPlayerInRangeOfPoint(i, 3, RandomSpawn[j][0], RandomSpawn[j][1], RandomSpawn[j][2]) && Player[i][PlayerSpawned] == true)
    {
        PlayerTextDrawShow(i, SpawnpointTD[i]);
        break;
    }
    else
    {
        PlayerTextDrawHide(i, SpawnpointTD[i]);
        break;
    }
}
You only need a break when a Spawn Point was found. Otherwise this loop will always stop after the first iteration...
Reply


Messages In This Thread
A problem - by SymonClash - 29.03.2019, 20:26
Re: A problem - by NaS - 29.03.2019, 21:31
Re: A problem - by Hunud - 29.03.2019, 21:44
Re: A problem - by SymonClash - 29.03.2019, 23:52
Re: A problem - by Kasichok - 30.03.2019, 00:42
Re: A problem - by SymonClash - 30.03.2019, 09:49
Re: A problem - by NaS - 30.03.2019, 11:13
Re: A problem - by Bolex_ - 30.03.2019, 11:16
Re: A problem - by SymonClash - 30.03.2019, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)