[Ajuda] Ajuda cmd /evagos - 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] Ajuda cmd /evagos (
/showthread.php?tid=415119)
Ajuda cmd /evagos -
Alisson Silva Alves - 11.02.2013
Oi ...
Tipo eu fiz o cmd /evagos para ser de baixo para cima ... ok pego de boa compilo tudo certinho.
Intao fui fazer outro igual so trocando as cord x y z com o mesmo comando , mais quando fui compila deu erro.
Intao eu gostaria de saber como faзo para corrigir isso, usando o mesmo comando para subir e decer no elevador
Subindo
pawn Код:
if(strcmp(cmdtext, "/evagos", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 2808.0977,-1175.9143,25.3794))
{
SetPlayerPos(playerid, 2808.0303,-1175.8809,32.6688);
SendClientMessage(playerid, 0xFFFFFFFF, "");
}
return 1;
}
return 0;
}
Descendo
pawn Код:
if(strcmp(cmdtext, "/evagos", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 2808.0303,-1175.8809,32.6688))
{
SetPlayerPos(playerid, 2808.0977,-1175.9143,25.3794);
SendClientMessage(playerid, 0xFFFFFFFF, "");
}
return 1;
}
return 0;
}
Erros
pawn Код:
C:\Users\Allisson\Desktop\[GM] Brasil Knight Games\gamemodes\BKG.pwn(216) : error 010: invalid function or declaration
C:\Users\Allisson\Desktop\[GM] Brasil Knight Games\gamemodes\BKG.pwn(218) : error 010: invalid function or declaration
C:\Users\Allisson\Desktop\[GM] Brasil Knight Games\gamemodes\BKG.pwn(223) : error 010: invalid function or declaration
C:\Users\Allisson\Desktop\[GM] Brasil Knight Games\gamemodes\BKG.pwn(225) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Podem me ajudar ? + Respect
Re: Ajuda cmd /evagos -
Delete_ - 11.02.2013
pawn Код:
if(strcmp(cmdtext, "/evagos", true) == 0)
Jб tentou mudar o nome dos comandos?
Re: Ajuda cmd /evagos -
MatheusFuria - 11.02.2013
Nгo й necessario dois comandos para 1 Elevador
Код:
if (strcmp(cmd, "/evagos", true) == 0)
{
if(PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18)
{
if(PlayerToPoint(2.0, playerid, 2808.0322,-1176.3846,25.3794))
{
SetPlayerPos(playerid, 2807.4321,-1174.6454,32.6688);
}
if(PlayerToPoint(2.0, playerid, 2807.4321,-1174.6454,32.6688))
{
SetPlayerPos(playerid, 2808.0322,-1176.3846,25.3794);
}
}
return true;
}
Re: Ajuda cmd /evagos -
Alisson Silva Alves - 11.02.2013
matheus mais meu gm nao tem org to fazendo do 0 e como ficaria o cmd ?
Re: Ajuda cmd /evagos -
Delete_ - 11.02.2013
Vocк n pode apagar essa parte?
if(PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 1
PHP код:
if (strcmp(cmd, "/evagos", true) == 0)
{
if(PlayerToPoint(2.0, playerid, 2808.0322,-1176.3846,25.3794))
{
SetPlayerPos(playerid, 2807.4321,-1174.6454,32.6688);
}
if(PlayerToPoint(2.0, playerid, 2807.4321,-1174.6454,32.6688))
{
SetPlayerPos(playerid, 2808.0322,-1176.3846,25.3794);
}
return 1;
}
Re: Ajuda cmd /evagos -
MatheusFuria - 11.02.2013
Код:
if (strcmp(cmd, "/evagos", true) == 0)
{
if(PlayerToPoint(2.0, playerid, 2808.0322,-1176.3846,25.3794))
{
SetPlayerPos(playerid, 2807.4321,-1174.6454,32.6688);
}
if(PlayerToPoint(2.0, playerid, 2807.4321,-1174.6454,32.6688))
{
SetPlayerPos(playerid, 2808.0322,-1176.3846,25.3794);
}
return true;
}
Re: Ajuda cmd /evagos -
Alisson Silva Alves - 11.02.2013
Obrigado Matheus , e Delete