Filling Progress bar from players online query?
#7

Quote:
Originally Posted by Vince
Посмотреть сообщение
I hope you realize you need to scale it to 100%? If there are say 354 of 500 players online then you obviously don't put 354 directly in the HTML. 354/500 players = 70.8% filled and that's the number you output in HTML.

The code you posted makes no sense at all and is not even syntactically correct. I think the guys at StackOverflow would have a good laugh.
Yes, you are certainly right. As i was reading the code to do another thing i realize what you just said, i have to admit that it has been such a rough week working on lots of projects and it seems that i went over the top.

Now, what would be the best way to scale it to those points while using PHP and without breaking the progress bar?
I know a few things that i could make (just thinking of them) but im not very php savvy to achieve it U_U
Reply


Messages In This Thread
Filling Progress bar from players online query? - by SparkyCode - 05.10.2015, 15:38
Re: Filling Progress bar from players online query? - by StuartD - 05.10.2015, 16:50
Re: Filling Progress bar from players online query? - by SparkyCode - 05.10.2015, 17:10
Re: Filling Progress bar from players online query? - by StuartD - 05.10.2015, 17:13
Re: Filling Progress bar from players online query? - by SparkyCode - 05.10.2015, 17:23
Re: Filling Progress bar from players online query? - by Vince - 05.10.2015, 17:29
Re: Filling Progress bar from players online query? - by SparkyCode - 05.10.2015, 17:49

Forum Jump:


Users browsing this thread: 2 Guest(s)