|
can someone tell me how to do this?
|
okay:
we have a database that stores all bank accounts and the money in them.
I want to make something so I can loop through the flags in the database and get all ones that are greater than a certain amount.
for example
if I said /npc checkbanks 500000
it would tell me all the accounts in the database that had 500,000 or more.
tig did it for us a while ago so I know it's possible. I just don't know how to approach this.
I can do the obvious:
for (pl: allplayers)
{
echo(pl SPC "has" SPC DB_Bank.("acc_" @ pl)[0]);
}
but that would only give me the ones that are online. I need to see offline ones too. |
__________________
*Sum41Freeeeek
*Frankie
|
|