CreateDynamicMapIconEx Not setting style
#1

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.
Reply
#2

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.
Reply
#3

Should I use SetPlayerMapIcon for everytime a player spawns?
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 3 Guest(s)