Help with streamer plugin
#1

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);
Reply
#2

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);
Reply
#3

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)