SQLite question
#1

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

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]);
Is it possible to update the Query without having an ID to begin with? thanks in advance.
Reply
#2

You don't need to specify any WHERE clauses if that's what you mean. It will simply update all existing rows.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)