SA-MP Forums Archive
[AJUDA] FS DE NEON - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] FS DE NEON (/showthread.php?tid=267810)



[AJUDA] FS DE NEON - RedBulL_x - 10.07.2011

Tentando criar meu 1° FS Simples, Tipo eu queria que podesse usar o cmd /Neon nessa cordenada 1617.7235,-1889.6929,13.5469, Na hora de compilar da Uma warning warning 213: tag mismatch e vou dentro da garagem que й nessa cordenada e digito /neon e nгo funciona alguem pode me ajudar ?


MEU FS : http://pastebin.com/eURDthN6

Linha da Warning:
Код:
if(IsPlayerInRangeOfPoint(45.0,playerid,1617.7235,-1889.6929,13.5469))



Re: [AJUDA] FS DE NEON - arakuta - 10.07.2011

Voce abriu 2 chaves e fechou uma.

pawn Код:
if (strcmp(cmdtext, "/neon", true)==0)
   
 {
    if(IsPlayerInRangeOfPoint(45.0,playerid,1617.7235,-1889.6929,13.5469))
    {
    ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "Sistema De Tunning", " R$ 4.500\tAzul\n R$ 4.500\tVermelho\n R$ 4.500\tVerde\n R$ 4.500\tBranco\n R$ 4.500\tRosa\n R$ 4.500\tAmarelo\n R$ 2.500\tRemover neon do veiculo", "OK", "Cancelar");
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    }
}
    return 1;
    }
    return 0;



Re: [AJUDA] FS DE NEON - Macintosh - 10.07.2011

pawn Код:
if (strcmp(cmdtext, "/neon", true)==0) 
{
    if(!IsPlayerInRangeOfPoint(45.0,playerid,1617.7235,-1889.6929,13.5469)) return SendClientMessage(playerid, -1, "[!] Vocк nгo estб na cordenada para equipar seu veiculo com neon!");
    ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "Sistema De Tunning", " R$ 4.500\tAzul\n R$ 4.500\tVermelho\n R$ 4.500\tVerde\n R$ 4.500\tBranco\n R$ 4.500\tRosa\n R$ 4.500\tAmarelo\n R$ 2.500\tRemover neon do veiculo", "OK", "Cancelar");
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    return 1;
}



Respuesta: [AJUDA] FS DE NEON - RedBulL_x - 10.07.2011

Nгo deu certo eu chego dentro dessa garagem que й nessa cordenada e Digito /neon e fala [!] Vocк nгo estб na cordenada para equipar seu veiculo com neon! , Asho que devo estar nas cord certinho . Eu quero fazer com que possa usar o comando Chegando perto dessa cordenada [!] Vocк nгo estб na cordenada para equipar seu veiculo com neon!, e Nгo exatamente nessa cordenada .


Respuesta: [AJUDA] FS DE NEON - RedBulL_x - 10.07.2011

Tento usar o PlayerToPoint Aк da um erro error 017: undefined symbol "PlayerToPoint". Aк coloco Uam Forward forward PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z); Aк da outro erro . error 004: function "PlayerToPoint" is not implemented


Re: [AJUDA] FS DE NEON - Shadoww5 - 10.07.2011

PlayerToPoint = IsPlayerInRangeOfPoint.

Serб que as coordenadas estгo corretas ? '-'


Respuesta: [AJUDA] FS DE NEON - RedBulL_x - 10.07.2011

Estгo corretas Sim. Atй porque eu uso /setpos [Cordenada] e vou para a cordenada e digito /neon da a mesma coisa .


Respuesta: [AJUDA] FS DE NEON - RedBulL_x - 10.07.2011

Cara eu passei o FS para o GM e o Comando tб assim .

Код:
if(strcmp(cmd, "/neon", true) == 0)
     {
        if(IsPlayerConnected(playerid))
	    {
	    if(PlayerToPoint(45.0,playerid,1617.7235,-1889.6929,13.5469)) return SendClientMessage(playerid, -1, "[!] Vocк nгo estб na cordenada para equipar seu veiculo com neon!");
        ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "Sistema De Tunning", " R$ 4.500\tAzul\n R$ 4.500\tVermelho\n R$ 4.500\tVerde\n R$ 4.500\tBranco\n R$ 4.500\tRosa\n R$ 4.500\tAmarelo\n R$ 2.500\tRemover neon do veiculo", "OK", "Cancelar");
        PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
        }
		return 1;
	}
Mais eu consigo usar o neon em qualquer lugar, e eu queria que podesse usar somente na garagem que sгo essas Cordenadas 1617.7235,-1889.6929,13.5469, O resto ta funcionando Normal


Re: [AJUDA] FS DE NEON - Ricop522 - 10.07.2011

pawn Код:
if(strcmp(cmd, "/neon", true) == 0)
     {
        if(IsPlayerConnected(playerid))
        {
        if(!PlayerToPoint(45.0,playerid,1617.7235,-1889.6929,13.5469)) return SendClientMessage(playerid, -1, "[!] Vocк nгo estб na cordenada para equipar seu veiculo com neon!");
        ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "Sistema De Tunning", " R$ 4.500\tAzul\n R$ 4.500\tVermelho\n R$ 4.500\tVerde\n R$ 4.500\tBranco\n R$ 4.500\tRosa\n R$ 4.500\tAmarelo\n R$ 2.500\tRemover neon do veiculo", "OK", "Cancelar");
        PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
        }
        return 1;
    }



Respuesta: [AJUDA] FS DE NEON - RedBulL_x - 10.07.2011

Qual a Diferenзa Ricop522 ? Do meu cmd para o seu ?