PDA

View Full Version : Help with streamer plugin


andrejc999
08/03/2017, 12:40 PM
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);

JessThompson
08/03/2017, 01:04 PM
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);

Edwin2801
08/03/2017, 03:10 PM
hMapIcon[h] = CreateDynamicMapIcon(hInfo[h][hX], hInfo[h][hY], hInfo[h][hZ], 31, COLOR_GREEN);

Sew_Sumi
08/03/2017, 04:33 PM
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.

andrejc999
08/03/2017, 07:05 PM
I already fixed it, buy thx guys :p. The problem was with MAPICON_LOCAL, so I just changed it to -1 and it works now...