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



DUVIDA curta - kennedy_samp - 05.11.2012

olб й o seguinte estou fazendo um portгo com comando de abrir e ele feche sozinho depois de 5 segundos mas ta dando uns erros aqui e gostaria que vcs me ajudassem este й o comando que estou seguindo : http://forum.sa-mp.com/showthread.ph...RT%C3O+COMANDO , e essas sгo as linhas com 3 erros :

C:\Users\windows\Desktop\Samp\gamemodes\Untitled.p wn(241) : error 010: invalid function or declaration
C:\Users\windows\Desktop\Samp\gamemodes\Untitled.p wn(246) : error 010: invalid function or declaration
C:\Users\windows\Desktop\Samp\gamemodes\Untitled.p wn(382) : error 017: undefined symbol "MoveDynamicObject"
C:\Users\windows\Desktop\Samp\gamemodes\Untitled.p wn(163) : warning 204: symbol is assigned a value that is never used: "MoverP"
C:\Users\windows\Desktop\Samp\gamemodes\Untitled.p wn(167) : warning 204: symbol is assigned a value that is never used: "entrandointerior"
C:\Users\windows\Desktop\Samp\gamemodes\Untitled.p wn(16 : warning 204: symbol is assigned a value that is never used: "sairdointerior"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.




linhas aqui:

linha :241 if(strcmp(cmd, "/abrirportao", true) == 0)

e essa:
linha: 246 return true;


e essa:
linha :382 MoveDynamicObject(MoverP, 2483.91113281,-1677.13256836,17.11679268, 2);

porfavor me ajuda!!!! dou rep + para quem me ajudar!!


AW: DUVIDA curta - Vinicius_TroLL - 05.11.2012

Me manda o comando do portгo completo o e portao criado (No caso seria o MoverP)


Re: DUVIDA curta - kennedy_samp - 05.11.2012

aqui o comando:

if(strcmp(cmd, "/abrirportao", true) == 0)
{
MoveObject(MoverP , 2483.91113281, -1677.13256836,7.11679268, 3); // Cordenada Dele Aberto
SendClientMessage(playerid, -1, "Vocк Moveu o Portгo"); // ( Mensagem ao Digitar )
SetTimer("FecharPortao", 5000, false); // Tempo para que ele suba denovo ( 5 SEG. )
return true;
}

e aqui o portгo criado :
MoverP = CreateObject(971,2483.91113281,-1677.13256836,17.11679268,0.00000000,0.00000000,18 2.00000000);


AW: DUVIDA curta - Vinicius_TroLL - 05.11.2012

Vocк usou CreateObject object e moveu com MoveDynamicObject Se usou CreateObject Use MoveObject e Nгo MoveDynamicObject Tendeu?