A problem
#1

Can someone tell me why this code doesn't show the SpawnpointTD even if i'm at the spawnpoint?

pawn 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]);
    }
    else
    {
        PlayerTextDrawHide(i, SpawnpointTD[i]);
    }
}
RandomSpawn:

pawn Code:
static const Float:RandomSpawn[][4] =
{
    {1320.7914,1262.0884,10.8203,357.0813},
    {408.3192,2452.5623,16.5000,5.9386},
    {-1321.2762,-219.7926,14.1484,12.5747 },
    {1910.8484,-2419.6887,13.5391,182.4597},
    {-2310.8376,-1616.5333,483.8190,176.1664},
    {-2416.7188,332.4720,34.9688,240.4801},
}
I tried with a simple SendClientMessage and it says i'm not at the spawnpoint, even if i spawn at RandomSpawn coordinates.
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)