Talk about anything in here.
ta2shop
Posts: 179 Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:
Post
by ta2shop » Sun May 08, 2011 9:01 pm
GenSwat wrote: LOL
got bored checked out ur ink site made you a forum sig?
wow this is great, thanks
GenSwat
Posts: 74 Joined: Sat May 07, 2011 3:37 pm
Post
by GenSwat » Sun May 08, 2011 9:12 pm
np man anytime
One of my Favorites
ta2shop
Posts: 179 Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:
Post
by ta2shop » Sun May 08, 2011 9:13 pm
dont now what the admin will think about it but , i hope it is by the rules
jacek
Site Admin
Posts: 3262 Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:
Post
by jacek » Sun May 08, 2011 9:19 pm
ta2shop wrote: dont now what the admin will think about it but , i hope it is by the rules
It would be without the text.
The image is 100px high, so it has to be just that and nothing else unfortunately.
I want to be strict on this one because I have seen some forums where you have to scroll for miles because of people signatures.
Tino
Posts: 360 Joined: Thu May 05, 2011 8:55 pm
Location: The Netherlands
Post
by Tino » Sun May 08, 2011 9:21 pm
Then I have hereby edited the rules to say signatures can be only 100px high, because they still said 150px.
GenSwat
Posts: 74 Joined: Sat May 07, 2011 3:37 pm
Post
by GenSwat » Sun May 08, 2011 9:22 pm
thats why i made it 150 height earlier, If this is a problem I wont make people forum sigs
One of my Favorites
ta2shop
Posts: 179 Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:
Post
by ta2shop » Sun May 08, 2011 9:23 pm
ok, changed the signature to fit the rules
sorry for the inconviniente. (how do you type that?
)
Tino
Posts: 360 Joined: Thu May 05, 2011 8:55 pm
Location: The Netherlands
Post
by Tino » Sun May 08, 2011 9:24 pm
Inconvenience
jacek
Site Admin
Posts: 3262 Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:
Post
by jacek » Sun May 08, 2011 9:25 pm
Tino wrote: because they still said 150px.
oops, thanks for that.
GenSwat wrote: thats why i made it 150 height earlier, If this is a problem I wont make people forum sigs
no it was my fault for not being clear. sorry
ta2shop wrote: ok, changed the signature to fit the rules
sorry for the inconviniente. (how do you type that?
)
thanks, it was my fault really, I should have remembered to change the rules page.
ta2shop
Posts: 179 Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:
Post
by ta2shop » Sun May 08, 2011 9:28 pm
Tino wrote: Inconvenience
thanks you sould read somthing i typed in english like 8 month ago
.
anyway, was thinking about the bingoo game script thing ... since it is using digits from 1 to 90 i can just use
[syntax=php]$number = rand(12,21);[/syntax] and then some sort of function to randomli print one of those numbers?
Tino
Posts: 360 Joined: Thu May 05, 2011 8:55 pm
Location: The Netherlands
Post
by Tino » Sun May 08, 2011 9:31 pm
No, you would just echo $number and it would display a random number between 12 and 21.
ta2shop
Posts: 179 Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:
Post
by ta2shop » Sun May 08, 2011 9:42 pm
Tino wrote: No, you would just echo $number and it would display a random number between 12 and 21.
my mistake, the number needs to by betwen 1 and 90! so the $number would by
[syntax=php]$number = rand(1,90);[/syntax]
right ?
EcazS
Posts: 789 Joined: Fri May 06, 2011 5:29 pm
Post
by EcazS » Sun May 08, 2011 9:50 pm
Yes that is correct
GenSwat
Posts: 74 Joined: Sat May 07, 2011 3:37 pm
Post
by GenSwat » Sun May 08, 2011 10:44 pm
OMG my first script with out help [syntax=php] <?php /** * @author GenSwat * @copyright 2011 */ $number = rand(1,75); if ($number <= 15) { echo "B-"; } elseif ($number >= 16 && $number <=30) { echo "I-"; } elseif ($number >= 31 && $number <= 45) { echo "N-"; } elseif ($number >= 46 && $number <= 60) { echo "G-"; } elseif ($number >= 61 && $number <= 75) { echo "O-"; } echo $number; ?> [/syntax] I am sure this can be done more clean but from researching found the syntax and started from [syntax=php]<?php $number = rand(1,75); ?>[/syntax] Bingo Generator
One of my Favorites
jacek
Site Admin
Posts: 3262 Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:
Post
by jacek » Sun May 08, 2011 11:02 pm
Looks clean enough, good job
GenSwat
Posts: 74 Joined: Sat May 07, 2011 3:37 pm
Post
by GenSwat » Sun May 08, 2011 11:04 pm
Basically, players buy cards with numbers on them in a 5 x 5 grid corresponding to the five letters in the word B-I-N-G-O. Numbers such as B-2 or 0-68 are then drawn at random (out of a possible 75 in American Bingo, and 90 in British and Australian Bingo the above code is for american style bingo so you would have to change it to 1-90 and alter which ones are for B-I-N-G-O in british or austrain 90 ball game
One of my Favorites
GenSwat
Posts: 74 Joined: Sat May 07, 2011 3:37 pm
Post
by GenSwat » Sun May 08, 2011 11:06 pm
jacek wrote: Looks clean enough, good job
Thank You, I was gonna try to use Switch and Case 1 Case 2... but couldn't figure it out
One of my Favorites
jacek
Site Admin
Posts: 3262 Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:
Post
by jacek » Sun May 08, 2011 11:11 pm
GenSwat wrote: I was gonna try to use Switch and Case 1 Case 2... but couldn't figure it out
It's no better than what you have
I very rarely use those.
GenSwat
Posts: 74 Joined: Sat May 07, 2011 3:37 pm
Post
by GenSwat » Sun May 08, 2011 11:12 pm
Now I am guessing you would have to have these numbers run a limit,and check for duplicates. If number exists generate differant number. also in the american game they draw 43 numbers and uses 42. I just seen other card there is just numbers and not letters...
One of my Favorites
GenSwat
Posts: 74 Joined: Sat May 07, 2011 3:37 pm
Post
by GenSwat » Mon May 09, 2011 5:20 am
TA2shop for a more random drawing of number use this [syntax=php]<?php $numbers = range(1, 90); shuffle($numbers); foreach ($numbers as $number) { echo "$number "; } ?> [/syntax] this will list 90 number without alot of overlap you could add a <br> [syntax=php] echo "$number " . '<br>'; [/syntax] to make it run vertically I edited the american version of mine to add the letters B-I-N-G-O in a random vertically [syntax=php]<?php $numbers = range(1,75); shuffle($numbers); foreach ($numbers as $number){ if ($number <= 15) { echo "B-"; } elseif ($number >= 16 && $number <=30) { echo "I-"; } elseif ($number >= 31 && $number <= 45) { echo "N-"; } elseif ($number >= 46 && $number <= 60) { echo "G-"; } elseif ($number >= 61 && $number <= 75) { echo "O-"; } echo "$number " . '<br>'; } ?>[/syntax]
One of my Favorites
ta2shop
Posts: 179 Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:
Post
by ta2shop » Mon May 09, 2011 8:15 am
wow, after all the criticisem it ricived a did not now ther are people intrested. thanks