Can`t place more then one icon on the map
#1

I can`t place more than one icon on the map.i have 6 but only one appears .Can some one help?

Here is my code.

Код:
public OnPlayerConnect(playerid)
{
	SendClientMessage(playerid, 0xEBF224FF, "Welcome to BG Role Play");
	SetPlayerMapIcon(playerid, 0,1003.0997,-937.1047,42.3281,38,0,MAPICON_LOCAL);
	SetPlayerMapIcon(playerid, 0,1942.3748,-1772.8783,13.6406,38,0,MAPICON_LOCAL);
	SetPlayerMapIcon(playerid, 0,655.0450,-566.5021,16.3359,38,0,MAPICON_LOCAL);
	SetPlayerMapIcon(playerid, 0,1382.6870,459.7399,20.3452,38,0,MAPICON_LOCAL);
	SetPlayerMapIcon(playerid, 0,-92.5087,-1171.0718,2.3948,38,0,MAPICON_LOCAL);
	SetPlayerMapIcon(playerid, 0,542.3856,-1292.9645,17.2422,55,0,MAPICON_LOCAL);
	playersconnected++;
	new string[128];
	format(string, sizeof(string), "There are %d people in the server",playersconnected);
	SendClientMessageToAll(0xEBF224FF, string);
 	new pName[24];
    new str[128];
    GetPlayerName(playerid, pName, 24);
    format(str, 128, "%s has joined the server", pName);
    SendClientMessageToAll(0xAFAFAFAA, str);
 	return 1;
}
Reply
#2

Код:
SetPlayerMapIcon(playerid, 0,1003.0997,-937.1047,42.3281,38,0,MAPICON_LOCAL);
SetPlayerMapIcon(playerid, 1,1942.3748,-1772.8783,13.6406,38,0,MAPICON_LOCAL);
SetPlayerMapIcon(playerid, 2,655.0450,-566.5021,16.3359,38,0,MAPICON_LOCAL);
SetPlayerMapIcon(playerid, 3,1382.6870,459.7399,20.3452,38,0,MAPICON_LOCAL);
SetPlayerMapIcon(playerid, 4,-92.5087,-1171.0718,2.3948,38,0,MAPICON_LOCAL);
SetPlayerMapIcon(playerid, 5,542.3856,-1292.9645,17.2422,55,0,MAPICON_LOCAL);
Reply
#3

Tnx its working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)