|
|||||||
| JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...) |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
im coding a page that calculates how many 'awards' you can get in an online game
i have done all the parts that calculate how many days left to get the awards and for all of them but one thing remains and that is ordering them by how many times you should do that thing to get the next award. for example if u click on 'Calculate' button by default at top u will see "1000 more fts to get Sneak Award! " and then under that is "500 more computer points to get Ub3rn00b techie Award! " or by numbers only its ordered like this at the moment: 1000 500 1000 250 300 200 50 100 250 5 what i want is ordering them by the number at the beginning, this is the right format for default values : 5 50 100 200 250 250 300 500 1000 1000 Tool.htm file is included in the zip file. hope you understood my question, any help would be appreciated. Thanks in advance |
|
#2
|
|||
|
|||
|
I'm a little skeptical of a 'techie' award bestowed by someone who doesn't know how to sort an array of integers....
|
|
#3
|
|||
|
|||
|
Haha, no its not a ceremony award or like that.
got me all wrong, its about the so called awards you get in a game when you reach a certain amount of stats. and by the way I already found out what to do to fix it through another forum. Appreciate your help though
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|