Hoje eu aprendi - Compartilhe sua recйm descoberta
#8

Quote:
Originally Posted by AmericanStyle'™
View Post
Wft ?

Hoje eu aprendi a Otimizar e criar uns macros para economizar linhas '-'.

pawn Code:
#define SetPlayerLocal(%0,%1,%2,%3,%4)  SetPlayerPos(%0,%1,%2,%3);\
        SetPlayerFacingAngle(%0,%4)
       
#define SetPlayerIntLocal(%0,%1,%2,%3,%4) SetPlayerPos(%0,%2,%3,%4);\
        SetPlayerInterior(%0,%1)
Modo de usar:

pawn Code:
SetPlayerLocal(playerid,Float:X,Float:Y,Float:Z);
SetPlayerIntLocal(playerid,interiorid,Float:X,Float:Y,Float:Z);
Entre outros aqui.
Abraзos.
Falta um parвmetro no SetPlayerLocal xD
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)