16.04.2014, 05:46
The problem is that your server doesn't know which map icon to delete.
To solve this, first create an array in the beginning of your gamemode to store map icon ID's for each player:
In your Updatemapicon function, you have to replace the SetPlayerMapIcon(...); line with this:
Now you can go to your stoptracking CMD, and replace the RemovePlayerMapIcon(...); line with this:
Hope it helps
To solve this, first create an array in the beginning of your gamemode to store map icon ID's for each player:
Код:
new MapIcons[MAX_PLAYERS];
Код:
MapIcons[playerid] = SetPlayerMapIcon(playerid,1,x,y,z,2,0,1);
Код:
RemovePlayerMapIcon(playerid, MapIcons[playerid]);
