Define a VALUE not variable.
#1

Ok, Its all well and easy to do something like
pawn Код:
#define hello 5
....but I want something more dynamic for example:

pawn Код:
new var = CreateVehicle(...);
#define VEHICLE var
This works, but only if "var" is made into a global variable. Is there anyway to assign the VALUE of "var" to the define, rather than making the define point to "var" which equals the value?

Any advice would be greatly appreciated!

Thanks

David
Reply


Messages In This Thread
Define a VALUE not variable. - by pyrodave - 15.08.2009, 15:30
Re: Define a VALUE not variable. - by [BDC]Scarface - 15.08.2009, 16:59
Re: Define a VALUE not variable. - by pyrodave - 15.08.2009, 17:29
Re: Define a VALUE not variable. - by Cueball - 16.08.2009, 00:51
Re: Define a VALUE not variable. - by pyrodave - 16.08.2009, 11:09
Re: Define a VALUE not variable. - by paytas - 16.08.2009, 11:19

Forum Jump:


Users browsing this thread: 1 Guest(s)