[Ajuda] Help.
#1

Bom,estou adicionando Map Icon's em meu gm.
Adicionei tal,Atй ai tudo bem.
CODE:

pawn Код:
public OnPlayerConnect(playerid)
{
// Map Icon //
SetPlayerMapIcon(playerid,0,-1920.4213,306.6340,41.0469,23,0,0);
SetPlayerMapIcon(playerid,0,-2710.4817,956.3316,54.4609,23,0,0);
SetPlayerMapIcon(playerid,0,-2225.6375,16.4725,35.3203,23,0,0);
SetPlayerMapIcon(playerid,0,-1606.7314,673.5708,-5.2422,23,0,0); // Este aqui!
new NomeD[MAX_PLAYER_NAME],jkp[80];
GetPlayerName(playerid,NomeD,MAX_PLAYER_NAME);
format(jkp, sizeof(jkp), "[LK] - %s Entrou.",NomeD);
SendClientMessageToAll(-1, jkp);
return 1;
}
Bom.
Estгo adicionados.
So que tem um Problema.
Somente um MapIcon,apareзe, que e o ultimo que estб com " // "
So ele apareзe no mapa..
Sempre funcionou normal meus Icons.
Nгo sei o problema,ja modifiquei posiзхes,etc..
E Nada.
Reply
#2

O segundo parametro й o Id do Icone,ou seja,vocк esta setando todos para 0,em consequencia disto,cria somente o ultimo,use assim:
pawn Код:
public OnPlayerConnect(playerid)
{
// Map Icon //
SetPlayerMapIcon(playerid,0,-1920.4213,306.6340,41.0469,23,0,0);
SetPlayerMapIcon(playerid,1,-2710.4817,956.3316,54.4609,23,0,0);
SetPlayerMapIcon(playerid,2,-2225.6375,16.4725,35.3203,23,0,0);
SetPlayerMapIcon(playerid,3,-1606.7314,673.5708,-5.2422,23,0,0);
new NomeD[MAX_PLAYER_NAME],jkp[80];
GetPlayerName(playerid,NomeD,MAX_PLAYER_NAME);
format(jkp, sizeof(jkp), "[LK] - %s Entrou.",NomeD);
SendClientMessageToAll(-1, jkp);
return 1;
}
caso queira saber mais use: SetPlayerMapIcon.
Reply
#3

Ae..
Deu certo.
Tinha esqueзido disso '-'
Valeu

+rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)