[Ajuda] Problema checkpoint Dinamico nгo some.. - 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] Problema checkpoint Dinamico nгo some.. (
/showthread.php?tid=656830)
Problema checkpoint Dinamico nгo some.. -
ThiagoGamemodes - 24.07.2018
Olб, eu estou com o seguinte problema, eu crio um checkpoint quando o player escolhe a profissгo mas quando ela entra no checkpoint ele nгo destrуi... o que pode ser?
code:
Код:
case 8:// isso no OnDialogResponse
{
new string1[250];
strcat(string1, "{FFFF00}|INFO| {FFFFFF}Vocк foi aceito na profissгo de Transportador\nVocк deve ir atй o local de trabalho para assinarem sua Carteira de Trabalho");
ShowPlayerDialog(playerid, 132, DIALOG_STYLE_MSGBOX, "Agencia de Empregos", string1, "OK", "");
TransportadorCheckpoint = SetPlayerRaceCheckpoint(playerid, 2, 2814.69556, 972.87659, 10.34809, 0, 0, 0, 3.10);
EscolheuProfissao[playerid] = 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == TransportadorCheckpoint)
{
DestroyDynamicRaceCP(playerid);
}
return true;
}
esse й o code em que estб o DynamicRaceCP...
Re: Problema checkpoint Dinamico nгo some.. -
ImNext - 24.07.2018
Tenta isso irmгo:
PHP код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(checkpointid == TransportadorCheckpoint)
{
DestroyDynamicRaceCP(TransportadorCheckpoint);
}
return 1;
}
Re: Problema checkpoint Dinamico nгo some.. -
Vithinn - 25.07.2018
Vocк estб utilizando a funзгo nativa do samp para setar um RaceCheckpoint, porйm estб utilizando a callback do Streamer. Creio que esse link vб te ajudar a resolver seu problema.
https://github.com/samp-incognito/sa...ce-Checkpoints)
Re: Problema checkpoint Dinamico nгo some.. -
ThiagoGamemodes - 25.07.2018
Quote:
Originally Posted by Vithinn
|
foi isso mesmo um erro bobo que eu nгo percebi, coloquei em player o racecp mas a callback era em streamer, jб arrumei e funcionou perfeitamente!
Re: Problema checkpoint Dinamico nгo some.. -
Vithinn - 25.07.2018
Quote:
Originally Posted by ImNext
Tenta isso irmгo:
PHP код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(checkpointid == TransportadorCheckpoint)
{
DestroyDynamicRaceCP(TransportadorCheckpoint);
}
return 1;
}
|
Isso tб errado de tantas formas, cara.
Re: Problema checkpoint Dinamico nгo some.. -
ImNext - 25.07.2018
Quote:
Originally Posted by Vithinn
Isso tб errado de tantas formas, cara.
|
Perdгo, nunca tinha mexido com Dinamic Checkpoint's e tambйm sou novo em Pawn.