[Ajuda] Macros
#2

Aqui:
pawn Код:
#define Teleporte(%0,%1,%2,%3,%4);  SetPlayerPos(%0,%1,%2,%3), SetPlayerFacingAngle(%0,%4);
o \ й para vocк continuar o cуdigo na outra linha !

pawn Код:
#define Teleporte(%0,%1,%2,%3,%4);  \
                                        SetPlayerPos(%0,%1,%2,%3), SetPlayerFacingAngle(%0,%4);
e й a mesma coisa que:

pawn Код:
stock Teleporte(playerid, X, Y, Z, Interior)
{
    SetPlayerPos(playerid, X, Y, Z), SetPlayerFacingAngle(playerid, Interior);
}
mais com define й mais otimizado
Reply


Messages In This Thread
Macros - by AndrePls - 25.12.2012, 18:10
Re: Macros - by JonathanFeitosa - 25.12.2012, 18:25
Re: Macros - by AndrePls - 25.12.2012, 18:27
Re: Macros - by tonisantolia - 25.12.2012, 18:38
Re: Macros - by AndrePls - 25.12.2012, 18:43
Re: Macros - by tonisantolia - 25.12.2012, 18:48
Re: Macros - by AndrePls - 25.12.2012, 18:50
Re: Macros - by JonathanFeitosa - 25.12.2012, 18:57
Re: Macros - by AndrePls - 25.12.2012, 19:05

Forum Jump:


Users browsing this thread: 1 Guest(s)