SA-MP Forums Archive
Streamer data manipulation. - 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: Streamer data manipulation. (/showthread.php?tid=373824)



Streamer data manipulation. - Kyle - 31.08.2012

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


Re: Streamer data manipulation. - XGh0stz - 31.08.2012

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


Re: Streamer data manipulation. - Kyle - 31.08.2012

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


Re: Streamer data manipulation. - XGh0stz - 31.08.2012

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 });