Is this define good or wrong?
#1

pawn Код:
#define Pickup(%1,%2,%3,%4,%5) CreatePickup(%1,2,%3,%4,%5,0)
so when i do
pawn Код:
Pickup(357,3038.5783691406,-156.11993408203,20.296875);
i get
pawn Код:
CreatePickup357,2,3038.5783691406,-156.11993408203,20.296875,0);
?

Thanks for help
Reply
#2

I dont know much about macros, but where is the %0?
Reply
#3

pawn Код:
#define Pickup(%0,%1,%2,%3,%4) (CreatePickup(%0,%1,%2,%3,%4,0))
Reply
#4

thx, i really need %0, but it needs
#define Pickup(%0,%1,%2,%3) (CreatePickup(%0,2,%1,%2,%3,0))
then

cause i only want to input model and coords
is this good then?
Reply
#5

Yes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)