Exercice en Pawn - Expert
#4

Dutheil;3434714 Wrote:Facile :D

PHP Code:
GetPosInFrontOfPlayer(playerid, &Float:x, &Float:yFloat:distance)
{
    new 
        
Float:angle;

    
GetPlayerPos(playeridxyangle);
    
GetPlayerFacingAngle(playeridangle);

    
+= (distance floatsin(-angledegrees));
    
+= (distance floatcos(-angledegrees));


Besoin d'explication ? Logiquement, suffit d'lire le wiki pour floatsin et floatcos et d'connaоtre la trigo'

Petite question.Tu ne doit pas return quelque chose ?
Reply


Messages In This Thread
Exercice en Pawn - Expert - by Dutheil - 16.04.2015, 20:43
Re : Exercice en Pawn - Expert - by S4t3K - 18.04.2015, 18:09
Re : Exercice en Pawn - Expert - by Dutheil - 18.04.2015, 18:19
Re : Exercice en Pawn - Expert - by StreetRP - 18.04.2015, 19:25
Re : Exercice en Pawn - Expert - by Vukilore - 18.04.2015, 19:38
Re: Re : Exercice en Pawn - Expert - by Noliax8 - 18.04.2015, 19:45
Re : Exercice en Pawn - Expert - by Dutheil - 18.04.2015, 19:54
Re: Re : Exercice en Pawn - Expert - by Baltimore - 18.04.2015, 20:25
Re : Exercice en Pawn - Expert - by S4t3K - 19.04.2015, 10:23
Re : Exercice en Pawn - Expert - by Dutheil - 19.04.2015, 11:03
Re : Exercice en Pawn - Expert - by S4t3K - 19.04.2015, 11:26
Re : Exercice en Pawn - Expert - by S4t3K - 21.04.2015, 19:13
Re : Exercice en Pawn - Expert - by Chipardeur - 21.04.2015, 19:20
Re : Exercice en Pawn - Expert - by ANDR3X - 21.04.2015, 19:49
Re : Exercice en Pawn - Expert - by Smocky - 21.04.2015, 19:50
Re : Exercice en Pawn - Expert - by Chipardeur - 21.04.2015, 19:57
Re : Exercice en Pawn - Expert - by Skinnz - 21.04.2015, 21:20
Re : Exercice en Pawn - Expert - by Papawy - 21.04.2015, 21:41
Re : Exercice en Pawn - Expert - by S4t3K - 01.05.2015, 16:02
Re : Exercice en Pawn - Expert - by Chris53340 - 01.05.2015, 17:23
Re : Exercice en Pawn - Expert - by Organum - 01.05.2015, 21:01
Re : Exercice en Pawn - Expert - by Ivory - 02.05.2015, 00:50
Re : Exercice en Pawn - Expert - by Chris53340 - 03.05.2015, 06:46
Re : Exercice en Pawn - Expert - by S4t3K - 03.05.2015, 17:25
Re : Exercice en Pawn - Expert - by Chris53340 - 03.05.2015, 18:02
Re : Exercice en Pawn - Expert - by S4t3K - 04.05.2015, 09:11
Re : Exercice en Pawn - Expert - by Dutheil - 20.05.2015, 21:14
Re : Exercice en Pawn - Expert - by S4t3K - 23.05.2015, 08:39
Re : Exercice en Pawn - Expert - by Rloco - 24.05.2015, 20:59
Re : Exercice en Pawn - Expert - by Skinnz - 24.05.2015, 21:51
Re : Exercice en Pawn - Expert - by Dutheil - 01.11.2015, 01:39
Re : Exercice en Pawn - Expert - by Chipardeur - 01.11.2015, 01:51

Forum Jump:


Users browsing this thread: 3 Guest(s)