From array to function parameters
#2

There are few ways, if you have a lot of areas and need to do the same for every one for whatever reason, you can define it so you only need to type it once.

pawn Код:
#define IMLAZY array[0],array[1],array[2],array[3]...
pawn Код:
Areas[map] = Area_AddPoly(IMLAZY);
That's the only example I can give you without knowing the context on what you're using it.
Reply


Messages In This Thread
From array to function parameters - by PeanutButter - 25.02.2017, 14:36
Re: From array to function parameters - by Toroi - 25.02.2017, 14:41
Re: From array to function parameters - by PeanutButter - 25.02.2017, 14:46
Re: From array to function parameters - by Vince - 25.02.2017, 15:08
Re: From array to function parameters - by PeanutButter - 25.02.2017, 22:30
Re: From array to function parameters - by renatog - 25.02.2017, 23:37
Re: From array to function parameters - by NaS - 26.02.2017, 06:52

Forum Jump:


Users browsing this thread: 1 Guest(s)