Problem on Map Icons - HELP !
#1

Hi everyone ! I Have a problem with the Map Icons.
I added 73 Map Icons in diferent locations. And when I connect to my server i don't see any icon on the map!
Please Help me, what's wrong ?
Here are an example of map icon in my gamemode:


Код:
public OnPlayerConnect(playerid)
{
	new zone[MAX_ZONE_NAME];
	GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
//===============// MAP ICONS //=============================//
//------------------------------------------------------------------------//
SetPlayerMapIcon(playerid, 46, 1538.15, -1672.51, 5.89, 30, 0);
Reply
#2

You forget the last parameter: the style ( CLICK ME )
But don't add the map icon at onplayerconnect, or add it once with a check variable ...
Reply
#3

In the example of Wiki
The map icons are located under public OnPlayerConnect . Look > https://sampwiki.blast.hk/wiki/SetPlayerMapIcon <

And thanks for your help
Reply
#4

I put the style on all map icons but now i see JUST THE LAST Icon in my GameMode on the MAP.
Any suggestions ?
The new code:


Код:
SetPlayerMapIcon(playerid, 46, -1957.63, -852.80, 32.22, 36, 0, 1);
Reply
#5

Solved, thanks !
The problem > All icon's id was 46. And i replace 46,46,46,46 with 1,2,3,4 for example. Now it's OK !
Close, please !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)