How to give a variable a value, that will also be read from a predefined value?
#1

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?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)