SA-MP Forums Archive
Duvidaaaa - 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: Duvidaaaa (/showthread.php?tid=186501)



Duvidaaaa - Rafael_Nerd - 29.10.2010

Tipo Fiz Sistema no meu gm de chamar instrutor
mais queria que so desse de chamar na auto escola
mais nao consigo por playertopoint olhem o code

Код:
if(strcmp(x_nr,"Instrutores",true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s Esta Na Auto-Escola e Necessita de um Instrutor. (Use /aceitar Intrutor - Para Aceitar a Chamada)", sendername);
SendFamilyMessage(11, TEAM_AZTECAS_COLOR, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce chamou um Instrutor... Agora espera a resposta.");
InstrutorCall = playerid;
return 1;
}
Ajudem Please


Re: Duvidaaaa - [FeK]HigorOliver - 29.10.2010

pegue a coordenada com /save de onde quiser ai resolvemos


Re: Duvidaaaa - Rafael_Nerd - 29.10.2010

Cordenadas Sao essas: 354.9509,154.5108,1025.7964


Re: Duvidaaaa - TiagoPS - 29.10.2010

pawn Код:
if(strcmp(x_nr,"Instrutores",true) == 0)
{
    if(PlayerToPoint(2.0,playerid,354.9509,154.5108,1025.7964 )
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "** %s Esta Na Auto-Escola e Necessita de um Instrutor. (Use /aceitar Intrutor - Para Aceitar a Chamada)", sendername);
        SendFamilyMessage(11, TEAM_AZTECAS_COLOR, string);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce chamou um Instrutor... Agora espera a resposta.");
        InstrutorCall = playerid;
        return 1;
    }
    else
    {
        SendClientMessage(playerid,COR, "Vocк nгo esta na autoe escola");
        return 1;
    }
}



Re: Duvidaaaa - Rafael_Nerd - 29.10.2010

Deu Um Erro

C:\Documents and Settings\rafael\Meus documentos\Rafael - Documentos\Arquivos de Programaзao Hardware\samp03bsvr_R2_win32\gamemodes\Thug.pwn(30 724) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Linha DO ERRO

pawn Код:
if(PlayerToPoint(2.0,playerid,354.9509,154.5108,1025.7964)
{



Re: Duvidaaaa - Shelby - 29.10.2010

Ficou faltando fechar um parкntese.

Код:
if(PlayerToPoint(2.0,playerid,354.9509,154.5108,1025.7964))



Re: Duvidaaaa - Rafael_Nerd - 29.10.2010

Vlw De Certim Closed obrigado a todos que me ajudaram