Jump to content

Experts i need your help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
vampire12

vampire12

    Newbie

  • Members
  • Pip
  • 3 posts
Hello and im sorry if i post that in wrong thread but i dont know how is that called and what i have to use to do something like that.
here is my question.

I started to create a web site that will set up game tournaments.
Example, is a game for 10 players, to join and list your name in the game you have to
click on the BUTTON, on that button i want to be able to see how many players joined till now
for example 5/10 and each player that join to count 6/10, 7/10...and whene is full 10/10 to dont accept
click on the button any more. how is possible to create that button? pls any ideas that can help me is wellcome thank you.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Can you add a few details? Is this just supposed to design the tournament, or actually control the game launch? Where do you plan to save the data? etc, etc, etc.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
vampire12

vampire12

    Newbie

  • Members
  • Pip
  • 3 posts
Hey ty for your replay.
well no it wont lunch anything..
the game will start for example at 5 oclock and i will host that game , i will start it and the ppl will join me at 5 olock. ok another game will start at 6, another at 7 oclock..you come to the site and you wana join at 6 oclock game is there place for you to join? 9/10 players is shows the button yes you can join and list your name so now the button shows 10/10..if come anothre player and try to join that game he wont be able to join coz is full. so button get desable to push or bring to anoother page that shows that game is full. something like a counter that will count till 10 list the names to a database or what ever can that be send them to me and dont accept anymore lists

#4
semprance

semprance

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
I think I understand what you're saying...

Use javascript to get the number of signed players and then change the value of the button.

eg.

myButton.value = tournament1.players.totalSignedUp + " / " + tournament1.maxPlayers;

#5
vampire12

vampire12

    Newbie

  • Members
  • Pip
  • 3 posts
Ahhhh ty much friend!:w00t: