Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top 10 ranking with hand money+bank money #5

Open
Walter-Correa opened this issue Jun 23, 2018 · 2 comments
Open

Top 10 ranking with hand money+bank money #5

Walter-Correa opened this issue Jun 23, 2018 · 2 comments

Comments

@Walter-Correa
Copy link

Hello. Is it possible to rank with the hand and bank money, adding the two?

new string[128], names[24],money;
new handle = SQL::OpenEx(SQL::MREAD, "Accounts", "", "", "", "", -1, 10, -1, "Money");
SQL::ReadRetrievedRows(handle, i)
{
SQL::ReadString(handle, "AccountName", names, 24, i);
SQL::ReadInt(handle, "Money", money, i);
format(string, sizeof(string), "Name %s | Money: %d", names,money);
SendClientMessage(playerid, -1, string);
}

@MaxAndolini
Copy link
Collaborator

Can you tell me exactly what you want?

@Walter-Correa
Copy link
Author

I have the field Money(hand) and Bank in DB.
I want to make a ranking adding the two.

In other words, a ranking of who has more money (Money + Bank).
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants