Map icons not showing
#1


the flag is not showing because we have dynamic houses ( we made 30 houses only)
Reply
#2

Are you sure the Map Icons have their own unique Index/ID?
Reply
#3

I guess, because there are 15 map icons, and over 25 houses.
and only 4 is showing
Reply
#4

Make sure every map icon's ID is unique. The ID is labelled below.
pawn Код:
SetPlayerMapIcon(playerid, 0/* This Map Icon's ID is 0. */, 1560.3713,-1675.8652,52.4503, 30, 0, MAPICON_LOCAL); //rspd map icon
SetPlayerMapIcon(playerid, 1/* This Map Icon's ID is 1. */, 2242.6121,-1676.1279,21.0313, 45, 0, MAPICON_LOCAL); //binco map icon
Reply
#5

Код:
setPlayerMapIcon(playerid, 5, -36.5458, 2347.6426, 24.1406, 19,2,MAPICON_GLOBAL); //SNakes farm

	SetPlayerMapIcon(playerid, 6, 260.0900,2889.5242,11.1854, 19,2,MAPICON_GLOBAL); //Bay side

	SetPlayerMapIcon(playerid, 7, 239.5721,1859.1677,14.0840, 19,2,MAPICON_GLOBAL); //Area 69

	SetPlayerMapIcon(playerid, 8, -551.6992,2593.0771,53.9348, 19,2,MAPICON_GLOBAL); //Army hotel

	SetPlayerMapIcon(playerid, 9, 670.9215,1705.4658,7.1875, 19,2,MAPICON_GLOBAL); //Army petrol bunk

	SetPlayerMapIcon(playerid, 10, 221.0856,1422.6615,10.5859, 19,2,MAPICON_GLOBAL); //Oil Factory

	SetPlayerMapIcon(playerid, 11, 558.9932,1221.8896,11.7188, 19,2,MAPICON_GLOBAL); //Oil Station

	SetPlayerMapIcon(playerid, 12, 588.3246,875.7402,-42.4973, 19,2,MAPICON_GLOBAL); //Quarry

	SetPlayerMapIcon(playerid, 13, -314.8433,1773.9176,43.6406, 19,2,MAPICON_GLOBAL); //Desert Guest house

	SetPlayerMapIcon(playerid, 14, -311.0136,1542.9733,75.5625, 19,2,MAPICON_GLOBAL); //Big Ear
	
	SetPlayerMapIcon(playerid, 15, -252.4415,2601.5671,62.8582, 58,2,MAPICON_GLOBAL); //Big Ear
	
	SetPlayerMapIcon(playerid, 16, 1146.7445,1977.0847,10.8203, 62,2,MAPICON_GLOBAL); //Big Ear
	
	SetPlayerMapIcon(playerid, 17, -797.4013,1555.2883,27.1244, 44,2,MAPICON_GLOBAL); //Big Ear
	
	SetPlayerMapIcon(playerid, 18, -148.3302,1109.5376,19.7500, 60,2,MAPICON_GLOBAL); //Big Ear
	
	SetPlayerMapIcon(playerid, 19, -1463.0382,2613.6235,62.0625, 59,2,MAPICON_GLOBAL); //Big Ear
Reply
#6

Does this solve it?
pawn Код:
SetPlayerMapIcon(playerid, 5, -36.5458, 2347.6426, 24.1406, 19,0,MAPICON_GLOBAL); //SNakes farm

    SetPlayerMapIcon(playerid, 6, 260.0900,2889.5242,11.1854, 19,0,MAPICON_GLOBAL); //Bay side

    SetPlayerMapIcon(playerid, 7, 239.5721,1859.1677,14.0840, 19,0,MAPICON_GLOBAL); //Area 69

    SetPlayerMapIcon(playerid, 8, -551.6992,2593.0771,53.9348, 19,0,MAPICON_GLOBAL); //Army hotel

    SetPlayerMapIcon(playerid, 9, 670.9215,1705.4658,7.1875, 19,0,MAPICON_GLOBAL); //Army petrol bunk

    SetPlayerMapIcon(playerid, 10, 221.0856,1422.6615,10.5859, 19,0,MAPICON_GLOBAL); //Oil Factory

    SetPlayerMapIcon(playerid, 11, 558.9932,1221.8896,11.7188, 19,0,MAPICON_GLOBAL); //Oil Station

    SetPlayerMapIcon(playerid, 12, 588.3246,875.7402,-42.4973, 19,0,MAPICON_GLOBAL); //Quarry

    SetPlayerMapIcon(playerid, 13, -314.8433,1773.9176,43.6406, 19,0,MAPICON_GLOBAL); //Desert Guest house

    SetPlayerMapIcon(playerid, 14, -311.0136,1542.9733,75.5625, 19,0,MAPICON_GLOBAL); //Big Ear
   
    SetPlayerMapIcon(playerid, 15, -252.4415,2601.5671,62.8582, 58,0,MAPICON_GLOBAL); //Big Ear
   
    SetPlayerMapIcon(playerid, 16, 1146.7445,1977.0847,10.8203, 62,0,MAPICON_GLOBAL); //Big Ear
   
    SetPlayerMapIcon(playerid, 17, -797.4013,1555.2883,27.1244, 44,0,MAPICON_GLOBAL); //Big Ear
   
    SetPlayerMapIcon(playerid, 18, -148.3302,1109.5376,19.7500, 60,0,MAPICON_GLOBAL); //Big Ear
   
    SetPlayerMapIcon(playerid, 19, -1463.0382,2613.6235,62.0625, 59,0,MAPICON_GLOBAL); //Big Ear
Reply
#7

Quote:
Originally Posted by SA-MP Wiki
The color of the icon, this should only be used with the square icon (ID: 0).
Read this, EiresJason (you change it to 2 before).

Superhot, try using a streamer for showing more map icons. I'm not sure what is wrong though but the limit is 100 and it should show them if you do not exceed the limit.
Reply
#8

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Read this, EiresJason (you change it to 2 before).

Superhot, try using a streamer for showing more map icons. I'm not sure what is wrong though but the limit is 100 and it should show them if you do not exceed the limit.
Yeah, that's why I set the colours as 0. (Superhot has set them as 2 :P)
Reply
#9

I am using the Streamer plugin. And if i dont write the house filterscript in server.cfg and add it manually it shows the flags. But when I /rcon loadfs and relog, it doesn't show the flags anymore (just some)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)