SA-MP Forums Archive
Why the hell? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why the hell? (/showthread.php?tid=148061)



Why the hell? - ViruZZzZ_ChiLLL - 15.05.2010

Why the hell this Map Icon doesn't show up >.<
pawn Код:
public OnPlayerConnect(playerid)
{
SetPlayerMapIcon(playerid, 90, 2204.9468, 1480, -1769, 19, 0);
return 1;
}



Re: Why the hell? - XRVX - 15.05.2010

90 is not a valid icon id
look here:
https://sampwiki.blast.hk/wiki/MapIcons


Re: Why the hell? - Las Venturas CNR - 15.05.2010

Make them in order, the id's.

So if you have 9 icons, set the id down the list counting, like:

1
2
3
4
5
6
7
8
9

as the ids. Not just some random one(s).


Re: Why the hell? - ViruZZzZ_ChiLLL - 15.05.2010

https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
and I tried it with id 1 still...


Re: Why the hell? - Las Venturas CNR - 15.05.2010

Quote:
Originally Posted by ViruZZzZ_ChiLLL
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
and I tried it with id 1 still...
Try re-creating it I guess. And to prevent confusion when you make it, use a creator. I seen one somewhere in the FS releases where you type "/createmapicon" then just customize the icon's picture. Hope I helped...


Re: Why the hell? - XRVX - 15.05.2010

The only difference between your line:
pawn Код:
SetPlayerMapIcon(playerid, 90, 2204.9468, 1480, -1769, 19, 0);
And the line on Wiki:
pawn Код:
SetPlayerMapIcon( playerid, 12, 2204.9468, 1986.2877, 16.7380, 52, 0 );
is the space infront of the playerid