SA-MP Forums Archive
[Ajuda] O que estб errado neste code ? - 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] O que estб errado neste code ? (/showthread.php?tid=452435)



O que estб errado neste code ? - Leopawno - 21.07.2013

new Portaogang;

public OnGameModeInit()
{

Portaogang = CreateObject(975,-2617.5000000,2271.8999023,8.8000002,0.0000000,0.00 00000,0.0000000);

}

no publiccommandtext (algo assim)

if(strcmp(cmdtext,"/abrirportao",true)==0)
{
MoveObject(Portaogang, 975,-2609.0000000,2272.0000000,8.8000002,0.0000000,0.00 00000,0.0000000,2.0); //o 2.0 й a velocidade dele abrir
SendClientMessage(playerid, -1, "Portгo aberto!");
return 1;
}
//agora o comando dele fechar
if(strcmp(cmdtext,"/fecharportao",true)==0)
{
MoveObject(Portaogang, 975,-2617.5000000,2271.8999023,8.8000002,0.0000000,0.00 00000,0.0000000,2.0);//o 2.0 й a velocidade
SendClientMessage(playerid, -1, "portao fechado");
return 1;
}


Re: O que estб errado neste code ? - Dana_scully - 21.07.2013

pawn Код:
if(strcmp(cmdtext,"/abrirportao",true)==0)
{
MoveObject(Portaogang, 975,-2609.0000000,2272.0000000,8.8000002,2.0); //o 2.0 й a velocidade dele abrir
SendClientMessage(playerid, -1, "Portгo aberto!");
return 1;
}
//agora o comando dele fechar
if(strcmp(cmdtext,"/fecharportao",true)==0)
{
MoveObject(Portaogang, 975,-2617.5000000,2271.8999023,8.8000002,2.0);//o 2.0 й a velocidade
SendClientMessage(playerid, -1, "portao fechado");
return 1;
}
NESSA PARTE VC SУ PRECISA DAS COORD X Y Z E VELOCIDADE. N DOS ANGULOS