SA-MP Forums Archive
Need help with map icons,, - 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)
+--- Thread: Need help with map icons,, (/showthread.php?tid=315208)



Need help with map icons,, - MSI - 02.02.2012

Hello, I'll trying to add some map icons to my game.

Here a example
pawn Code:
SetPlayerMapIcon( playerid, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL );
I get the error that MAPICON_LOCAL undefined is. May I need a include for it?


Re: Need help with map icons,, - milanosie - 02.02.2012

Add this on OnGamemode Init.
where did u place it?


Re: Need help with map icons,, - Jakku - 02.02.2012

Which version of SA-MP are you using?


Re: Need help with map icons,, - MSI - 02.02.2012

I use samp 0.3d, and I placed it under OnGameModeInit()


Re: Need help with map icons,, - milanosie - 02.02.2012

place under onplaeyrconnect


Re: Need help with map icons,, - MP2 - 02.02.2012

Quote:
Originally Posted by MSI
View Post
I use samp 0.3d, and I placed it under OnGameModeInit()
How can you place it under OnGameModeInit if it has a playerid parameter..? It should be put under OnPlayerConnect or OnPlayerSpawn.


Re: Need help with map icons,, - MSI - 02.02.2012

Okay, than is the samp Wiki incorrect;p But thanks


Re: Need help with map icons,, - MSI - 02.02.2012

Place it under onplayerconnect not working...


Re: Need help with map icons,, - thimo - 02.02.2012

Try onplayerspawn...


Re: Need help with map icons,, - MSI - 02.02.2012

Working


Re: Need help with map icons,, - thimo - 02.02.2012

Good