Please turn on javascript in your browser to play chess.
Site Ideas Forum
Brooklyn, NY
Joined 19 May '04 Moves 14088
RHP HQ
Joined 21 Feb '01 Moves 2417 Fixed about a month ago on my development machine, but a new major release of all the code has not been uploaded since then...so that glaring typo goes uncorrected. But since someone else has noticed it, I better fix it now...
-Russ
Brooklyn, NY
Joined 19 May '04 Moves 14088 Aiko Nearing 250000...!
Joined 23 Mar '04 Moves 250190 Another sort of typo; when I have only 1 game waiting, it says '1 games waiting'. That's silly...!
Why not add an:
if (gamesWaiting == 1)
{
gamesWaitingText = (gamesWaiting + " game waiting" ) ;
}
else
{
gamesWaitingText = (gamesWaiting + " games waiting" ) ;
}
...or something...
Milton Keynes, UK
Joined 28 Jul '04 Moves 80200 or:
gamesWaitingText = (gamesWaiting + " game" ) ;
if (gamesWaiting != 1)
{
gamesWaitingText = gamesWaitingText + "s";
}
gamesWaitingText = (gamesWaiting + " waiting" ) ;
😉
Everywhere
Joined 12 Oct '04 Moves 8623 waste of code really:
gamesWaitingText = (" Games Waiting : " + gamesWaiting ) ;
EDIT: much shorter and much neater.
Uk
Joined 20 Mar '05 Moves 19460 all ur codes look c'ish so i would use t'nry operator (cos Im lazy typist):
gamesWaitingText = (gamesWaiting != 1) ? (gamesWaiting + "games waiting"😉 : (gamesWaiting + " game waiting"😉;
Uk
Joined 20 Mar '05 Moves 19460 Originally posted by redbaron101
all ur codes look c'ish so i would use t'nry operator (cos Im lazy typist):
gamesWaitingText = (gamesWaiting != 1) ? (gamesWaiting + "games waiting"😉 : (gamesWaiting + " game waiting"😉; b@*&^@! smilies!!
gamesWaitingText = ( gamesWaiting != 1 ) ? ( gamesWaiting + " games waiting" ) : ( gamesWaiting + " game waiting" ) ;
Aiko Nearing 250000...!
Joined 23 Mar '04 Moves 250190 Hmm, that's better coding...
CaNaDa
Joined 25 Nov '04 Moves 46658 wouldn't it be just easier if he just put the s in () ?
Game(s) Waiting.. no code needed.. just uglier
Dhaka
Joined 08 Oct '04 Moves 3885 Originally posted by redbaron101
b@*&^@! smilies!!
gamesWaitingText = ( gamesWaiting != 1 ) ? ( gamesWaiting + " games waiting" ) : ( gamesWaiting + " game waiting" ) ; A shorter one:
gamesWaitingText = ( gamesWaiting != 1 ) ? ( gamesWaiting + " games waiting" ) : ( 1+ " game waiting" ) ;
A smarter one:
gamesWaitingText = ( gamesWaiting != 0)?((( gamesWaiting != 1 ) ? ( gamesWaiting + " games waiting" ) : ( 1+ " game waiting" ))🙁"no games waiting);
Aiko Nearing 250000...!
Joined 23 Mar '04 Moves 250190 The same should apply with the messages indicator (or how one calls it). When I have only one unread message, it refers to it as 'messages'.
Aiko Nearing 250000...!
Joined 23 Mar '04 Moves 250190 And the same should apply with the reccomendation indicator (or how one calls it). When I have only one recommendation, it refers to it as 'recommendations'.
Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More . I Agree