17.12.2009, 20:23
So, I'm getting one error every time I try to use this macro.
The error it gives me is
There's quite a few calls to it, so I'll just elaborate by saying that the calls are all pretty similar to
And the gun and amount variables are stored from whatever it is they're storing.
pawn Код:
#define PutInLocker(%0,%1,%2) \
new found;
for(new i = 0; i < 6; i++) \
{ \
if(found == 1 || Locker[%0][i] != 0) continue; \
Locker[%0][i] = (%1); \
LockerAmount[%0][i] = (%2); \
found = 1; \
}
Код:
error 036: empty statement
pawn Код:
PutInLocker(playerid, item, amount);