SA-MP Forums Archive
Help with streamer plugin - 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: Help with streamer plugin (/showthread.php?tid=630063)



Help with streamer plugin - andrejc999 - 08.03.2017

Hi guys. I made a house system with dynamic map icons, pickups and 3d text labels and I wanted to test it out with 2 of my friends. Everything works fine but map icons are showing only for me and not for them for some reason. Can someone help me?


Here is the code:

Код:
hMapIcon[h] = CreateDynamicMapIcon(hInfo[h][hX], hInfo[h][hY], hInfo[h][hZ], 31, COLOR_GREEN, 0, 0, MAPICON_LOCAL, 150.0);



Re: Help with streamer plugin - JessThompson - 08.03.2017

Try this please

Код:
hMapIcon[h] = CreateDynamicMapIcon(hInfo[h][hX], hInfo[h][hY], hInfo[h][hZ], 31, COLOR_GREEN, 0, 0, -1, -1, 150.0);
Parameters for CreateDynamicMapIcon
Код:
CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0, style = MAPICON_LOCAL);



Re: Help with streamer plugin - Edwin2801 - 08.03.2017

Код:
hMapIcon[h] = CreateDynamicMapIcon(hInfo[h][hX], hInfo[h][hY], hInfo[h][hZ], 31, COLOR_GREEN);



Re: Help with streamer plugin - Sew_Sumi - 08.03.2017

Quote:
Originally Posted by JessThompson
Посмотреть сообщение
Try this please

Код:
hMapIcon[h] = CreateDynamicMapIcon(hInfo[h][hX], hInfo[h][hY], hInfo[h][hZ], 31, COLOR_GREEN, 0, 0, -1, 150.0, MAPICON_LOCAL);
Parameters for CreateDynamicMapIcon
Код:
CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0, style = MAPICON_LOCAL);
FTFY. You got it mixed up if the above syntax is correct.


Re: Help with streamer plugin - andrejc999 - 08.03.2017

I already fixed it, buy thx guys . The problem was with MAPICON_LOCAL, so I just changed it to -1 and it works now...