how to check variable is maximum
#5

That would be more complicated, but not necessarily hard. I gave you a base code, so build off of it - You will be required to use your personal knowledge here.

You will need to make so the highscore variable is an array, of three slots. Then check if the score of the current player id is above any of them. If the first, move down the other two, second, move down the last, etc. It's all more if statements and math.
Reply


Messages In This Thread
how to check variable is maximum - by jame42 - 21.11.2010, 06:57
Re: how to check variable is maximum - by Grim_ - 21.11.2010, 07:02
Re: how to check variable is maximum - by Lorenc_ - 21.11.2010, 07:02
Re: how to check variable is maximum - by jame42 - 21.11.2010, 07:12
Re: how to check variable is maximum - by Grim_ - 21.11.2010, 07:15
Re: how to check variable is maximum - by jame42 - 21.11.2010, 07:22

Forum Jump:


Users browsing this thread: 1 Guest(s)