05.12.2010, 14:19
We use mapicons to show on radar where the race leader is. The problem is that it doesn't replace/remove the previous mapicon.
So you end up with hundreds of mapicons, as show below:
Can anyone help?
Код:
RemovePlayerMapIcon(playerid, 0); SetPlayerMapIcon(playerid, 0, GRID_Stored[0][0] ,GRID_Stored[0][1], GRID_Stored[0][2], 33, 0, MAPICON_GLOBAL); RemovePlayerMapIcon(playerid, 2); SetPlayerMapIcon(playerid, 2, RaceCheckpoints[RACE_Max_Checkpoints -1][0],RaceCheckpoints[RACE_Max_Checkpoints -1][1],RaceCheckpoints[RACE_Max_Checkpoints -1][2], 55, 0, MAPICON_LOCAL);
Can anyone help?