only one 'SetPlayerMapIcon' working for me. - 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: only one 'SetPlayerMapIcon' working for me. (
/showthread.php?tid=243956)
only one 'SetPlayerMapIcon' working for me. -
Gemini - 25.03.2011
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
AW: only one 'SetPlayerMapIcon' working for me. -
Pablo Borsellino - 25.03.2011
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
Re: only one 'SetPlayerMapIcon' working for me. -
Gemini - 25.03.2011
ahh I see, thank you. But why are different IconID's anyway?
Re: only one 'SetPlayerMapIcon' working for me. -
iNeon - 25.03.2011
It's for destroy another mapicons, it's like a playerid but for mapicons.