Streamer data manipulation.
#1

I do this code and it creates it for all the players...

Код:
GPSIcons[playerid][slotid] = CreateDynamicMapIconEx(StoreInfo[b][EntryX],StoreInfo[b][EntryY],StoreInfo[b][EntryZ], icontype, 0, MAPICON_GLOBAL, 9999.0, { -1 }, { -1 });
So I do this but it doesn't change it.

Код:
Streamer_AppendArrayData(4, GPSIcons[playerid][slotid], E_STREAMER_PLAYER_ID, playerid);
how to make it show for playerid only?

Thanks
Reply
#2

You should probably name the streamer you're using or display all the related function code before anyone would be able to help you out, I personally am not familar with it though.

The CreateDynamicMapIconEx() function code should be displayed for further help
Reply
#3

Please refer to here: https://sampforum.blast.hk/showthread.php?tid=102865
Reply
#4

Alright, so you want to stream a Map Icon, but only for a single player...

The Native is:
Код:
native CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
So try: (I Just changed the last -1(everyone) to playerid assuming thats the playerid entry)
Код:
GPSIcons[playerid][slotid] = CreateDynamicMapIconEx(StoreInfo[b][EntryX],StoreInfo[b][EntryY],StoreInfo[b][EntryZ], icontype, 0, MAPICON_GLOBAL, 9999.0, { -1 }, { playerid });
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)