05.08.2015, 19:16
Hello, I am currently creating a tax system for my gamemode and I am having trouble figuring out if I can use a 1 dimensional variable for the enumeration to update the tax system.
Here is my code and an example of what I mean
Is it possible to update the Query without having an ID to begin with? thanks in advance.
Here is my code and an example of what I mean
pawn Код:
enum TaxData
{
TaxAmount,
TaxGathered,
Police,
Fire,
Corrections,
Gov,
Court
};
new tInfo[TaxData];
pawn Код:
tInfo[TaxGathered] = amount/TAX_AMOUNT;
format(Query, sizeof(Query), "UPDATE taxinfo SET taxgathered = %d", tInfo[TaxGathered]);