28.06.2013, 20:37
Lets say I got
new license[1][128]
if (nolicense[playerid]) license[0] = "$1000";
This works, however how would I make it so I can predefine the $1000 in the top of the script? For example
#define LICENSE_PRICE 1000;
And use it like this
new license[1][128]
if (nolicense[playerid]) license[0] = "$%d", LICENSE_PRICE; (ofcourse this wont work) but is there aw ay for it to work?
new license[1][128]
if (nolicense[playerid]) license[0] = "$1000";
This works, however how would I make it so I can predefine the $1000 in the top of the script? For example
#define LICENSE_PRICE 1000;
And use it like this
new license[1][128]
if (nolicense[playerid]) license[0] = "$%d", LICENSE_PRICE; (ofcourse this wont work) but is there aw ay for it to work?