їPor quй no sube? - 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: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: їPor quй no sube? (
/showthread.php?tid=590100)
їPor quй no sube? -
Fagrinht - 25.09.2015
Trato de hacer que al poner /peaje suba la barrera, mбs no lo hace.. asн lo tengo:
Код:
new peajepuerta[3];
peajepuerta[1] = CreateDynamicObject(968, 53.86662300, -1526.9995120, 4.77926100, 0.00000, -89.38135874, -97.81226081);
if(strcmp(cmd, "/peaje", true) == 0) //peaje LS
{
if(IsPlayerInRangeOfPoint(playerid, 12.0, 61.4137, -1524.7015, 5.5230) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) //Peaje
{
MoveDynamicObject(peajepuerta[1], 53.86662300, -1526.99951200, 4.77926100,0,0,-97.81226081, 2.0);
SetTimerEx("CerrarPuerta",4000,0,"p",peajepuerta[1]);
}
return 1;
}
(Cierre de la puerta en una funciуn)
if(puerta == peajepuerta[1]){SetDynamicObjectRot(peajepuerta[1], 0.0, 90.0, 90.0);}
Re: їPor quй no sube? -
Jastak - 25.09.2015
Cuбl es el el valor inicial (coordenadas iniciales) del objeto?
Respuesta: Re: їPor quй no sube? -
Fagrinht - 25.09.2015
Quote:
Originally Posted by Jastak
Cuбl es el el valor inicial (coordenadas iniciales) del objeto?
|
El objeto en su posiciуn normal sin subir es 53.86662300, -1526.9995120, 4.77926100
Re: їPor quй no sube? -
Jastak - 25.09.2015
Creo que es el orden de la funciуn (de los parбmetros) de MoveDynamicObject el problema.
Код:
MoveDynamicObject(peajepuerta[1], 53.86662300, -1526.99951200, 4.77926100,ESTE ES EL TIEMPO YO CREO QUE ESTARНA BIEN 3.5,0,-97.81226081, 2.0);
Respuesta: Re: їPor quй no sube? -
MaikelRincon - 25.09.2015
Quote:
Originally Posted by Jastak
Creo que es el orden de la funciуn (de los parбmetros) de MoveDynamicObject el problema.
Код:
MoveDynamicObject(peajepuerta[1], 53.86662300, -1526.99951200, 4.77926100,ESTE ES EL TIEMPO YO CREO QUE ESTARНA BIEN 3.5,0,-97.81226081, 2.0);
|
En vez de subir se va a un lado.