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

Quote:
Originally Posted by Vince
Посмотреть сообщение
Why are you storing it as a string anyway? You can just format it when it needs to be sent to the output.
Because in the script its
if (nolicense[playerid]) license[0] = "{COLOR CODE}$1000";
else if (havelicense[playerid]) license[0] = "{COLOR CODE}$500";

Then its

format(gstring, sizeof(gstring), "The price is d", $license[0]);
SendClientMessage(playerid, COLOR_GREEN, gstring);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)