only one 'SetPlayerMapIcon' working for me.
#1

When i place a SetPlayerMapIcon in my script, and compile, it gives me no errors and the icon is working. But when I create a second SetPlayerMapIcon, both icons dont work anymore :/ heres the code:

Код:
public OnPlayerConnect( playerid )
{
	SetPlayerMapIcon( playerid, 12, -95.6989,-385.3191,1.4297, 52, 0, MAPICON_LOCAL ); //test1
	SetPlayerMapIcon( playerid, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL ); //test2
}
Can someone help me please? I am using Midostreams Streamer. And I placed this code in a filterscript.

Thanks in advance
Reply
#2

You have to change the Iconid. You have two Icons with one Iconid, this does not work, change the second Syntax after playerid to an ID, like 1, 2, 3 and so on...
pawn Код:
SetPlayerMapIcon(playerid,1, -95.6989,-385.3191,1.4297, 52, 0, MAPICON_LOCAL ); //test1
SetPlayerMapIcon(playerid,2, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL ); //test2
Reply
#3

ahh I see, thank you. But why are different IconID's anyway?
Reply
#4

It's for destroy another mapicons, it's like a playerid but for mapicons.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)