SA-MP Forums Archive
CreateDynamicMapIconEx Not setting style - 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: CreateDynamicMapIconEx Not setting style (/showthread.php?tid=385375)



CreateDynamicMapIconEx Not setting style - Brandlax - 15.10.2012

So I am using Incognito's Streamer and in the function CreateDynamicMapIconEx, I can't get it to set the style to id 2 which is MAPICON_LOCAL_CHECKPOINT. It always stays 0 which is the default. Here is my code:

Код:
CreateDynamicMapIconEx(X,Y,Z,MapIconID, 0,3, 100.0, {0}, {0}, {-1}, 1, 1, 10);
The MapIconID and the XYZ are other variables. Those set perfectly.


Re: CreateDynamicMapIconEx Not setting style - Basssiiie - 15.10.2012

Be aware that the checkpoint will not be shown on top of SA-MP created objects. If you have a floating island above water, the checkpoint will appear at sealevel, not at the height you want it. Checkpoints will always stick to the ground or the sealevel.

If you want to check if the style is set correctly:
Код:
printf("Map icon style: %i", Streamer_GetIntData(STREAMER_TYPE_MAP_ICON, <id of dynamic map icon here>, E_STREAMER_STYLE));
This will print the style of your map icon in the console.


Re: CreateDynamicMapIconEx Not setting style - Brandlax - 15.10.2012

Should I use SetPlayerMapIcon for everytime a player spawns?


Re: CreateDynamicMapIconEx Not setting style - Ghost_Boii - 15.10.2012

PHP код:
CreateDynamicMapIcon(X,Y,ZModel0); 



Re: CreateDynamicMapIconEx Not setting style - Brandlax - 15.10.2012

Quote:
Originally Posted by Ghost_Boii
Посмотреть сообщение
PHP код:
CreateDynamicMapIcon(X,Y,ZModel0); 
I want to make the map icon MAPICON_GLOBAL