Is this define good or wrong? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is this define good or wrong? (
/showthread.php?tid=244442)
Is this define good or wrong? -
Stryp - 27.03.2011
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
Re: Is this define good or wrong? -
deather - 27.03.2011
I dont know much about macros, but where is the %0?
Re: Is this define good or wrong? -
Conroy - 27.03.2011
pawn Код:
#define Pickup(%0,%1,%2,%3,%4) (CreatePickup(%0,%1,%2,%3,%4,0))
Re: Is this define good or wrong? -
Stryp - 27.03.2011
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?
Re: Is this define good or wrong? -
MadeMan - 27.03.2011
Yes.