їPor quй no funciona?
#5

Quote:
Originally Posted by Josstaa
Посмотреть сообщение
pawn Код:
new Float:PlayerFacingAngle ;
GetPlayerFacingAngle(playerid, PlayerFacingAngle);
if(PlayerFacingAngle != OESTE) return SendClientMessageEx(playerid, COLOR_GRAD2, "ЎNo estбs con la cajuela hacia atrбs!");
Hay que aclarar que es muy difнcil que el angulo siempre sea a lo que esta definido "OESTE", por lo que es recomendado hacerlo con un rango
pawn Код:
new Float:PlayerFacingAngle ;
GetPlayerFacingAngle(playerid, PlayerFacingAngle);
if(PlayerFacingAngle >= OESTE-20 && PlayerFacingAngle <= OESTE+20){
    // Estб con la cajuela hacia atrбs
}

else return SendClientMessageEx(playerid, COLOR_GRAD2, "ЎNo estбs con la cajuela hacia atrбs!");
Lo arme asн por que me tiraba errores :

Код:
 
        new Float:Angle;
        new PlayerFacingAngle = GetPlayerFacingAngle(playerid, Angle);
	GetPlayerFacingAngle(playerid, Angle);
	if(!PlayerFacingAngle >= OESTE-15 && PlayerFacingAngle <= OESTE+15){
	SendClientMessageEx(playerid, COLOR_GRAD2, "ЎNo estбs con la cajuela hacia atrбs!");
	DisablePlayerCheckpoint(playerid);
	return 1;
	}
Y me sigue tirando el warning de "tag mistech" o algo asн

Quote:
Originally Posted by Leososa
Посмотреть сообщение
Lo arme asн por que me tiraba errores :

Код:
 
        new Float:Angle;
        new PlayerFacingAngle = GetPlayerFacingAngle(playerid, Angle);
	GetPlayerFacingAngle(playerid, Angle);
	if(!PlayerFacingAngle >= OESTE-15 && PlayerFacingAngle <= OESTE+15){
	SendClientMessageEx(playerid, COLOR_GRAD2, "ЎNo estбs con la cajuela hacia atrбs!");
	DisablePlayerCheckpoint(playerid);
	return 1;
	}
Y me sigue tirando el warning de "tag mistech" o algo asн
El warning era por que el "!" no funcionaba creo . Ahora lo arme asн, pero este en la posiciуn que este, SIGUE SIN FUNCIONAR :S .

Код:
if(PlayerFacingAngle >=90 && PlayerFacingAngle <150){
				SendClientMessageEx(playerid, COLOR_GRAD2, "ЎFUNCIONA!");
				DisablePlayerCheckpoint(playerid);
				return 1;
				}else return SendClientMessageEx(playerid, COLOR_GRAD2, "ЎNo estбs con la cajuela hacia atrбs!");
їALGUNA AYUDA?! No sй que mas hacer D:
Reply


Messages In This Thread
їPor quй no funciona? - by Leososa - 13.10.2013, 01:50
Respuesta: їPor quй no funciona? - by Swedky - 13.10.2013, 01:58
Respuesta: їPor quй no funciona? - by OTACON - 13.10.2013, 01:58
Respuesta: їPor quй no funciona? - by Jovazxc - 13.10.2013, 04:59
Josstaa - by Leososa - 13.10.2013, 20:37
Respuesta: їPor quй no funciona? - by DesingMyCry - 14.10.2013, 02:34

Forum Jump:


Users browsing this thread: 1 Guest(s)