Posts: 574
Threads: 87
Joined: Aug 2009
Reputation:
0
Thanks for the help, it doesn't seem to destroy the original and also it doesnt seem to create a new one
Posts: 574
Threads: 87
Joined: Aug 2009
Reputation:
0
OK, it seems that i have fixed it, but it only updates once, how do i make it keep it up to date - like so it carries on following?
Posts: 574
Threads: 87
Joined: Aug 2009
Reputation:
0
Damn, it doesn't work at all, i imagined it, any ideas how?
Posts: 574
Threads: 87
Joined: Aug 2009
Reputation:
0
This is the DestroyMapIcon function (from double-o-icons include) forward DestroyMapIcon(id);
public DestroyMapIcon(id)
{
if(!IconActive[id]) return 0;
new slot;
IconActive[id]=false;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
slot=IconSlot[i][id];
if(slot!=INVALID_SLOT)
{
RemovePlayerMapIcon(i,slot);
SlotIconID[i][slot]=INVALID_ICON_ID;
IconSlot[i][id]=INVALID_SLOT;
}
}
}
return 1;
}