Bonus Tickets and Alphabetical Use ?

For discussion of the Poker Mavens server module and other administration topics

Bonus Tickets and Alphabetical Use ?

Postby Tuck Fheman » Mon Sep 13, 2021 12:01 pm

If a player has multiple tickets that start with the designated prefix, the first one found alphabetically will be used


Can you please clarify for me how this will work if a player has two tickets with the same prefix ... one is BONUS100 and one is BONUS500.

I assume BONUS100 will be used first and then BONUS500, then BONUS1000, etc. Correct?

Thanks and sorry I'm stupid. ;)
Tuck Fheman
 
Posts: 156
Joined: Tue Jul 04, 2017 6:44 am

Re: Bonus Tickets and Alphabetical Use ?

Postby Kent Briggs » Mon Sep 13, 2021 12:37 pm

Tuck Fheman wrote:I assume BONUS100 will be used first and then BONUS500, then BONUS1000, etc. Correct?


No, those three would sort in ascending order as follows:

BONUS100
BONUS1000
BONUS500

Because alphabetical sorting is character by character. If you want numeric sorting, insert some leading zeros:

BONUS0100
BONUS0500
BONUS1000
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 5285
Joined: Wed Mar 19, 2008 8:47 pm

Re: Bonus Tickets and Alphabetical Use ?

Postby Tuck Fheman » Sat Sep 18, 2021 6:48 am

Thanks!
Tuck Fheman
 
Posts: 156
Joined: Tue Jul 04, 2017 6:44 am


Return to Site Administration

Who is online

Users browsing this forum: No registered users and 16 guests