Bitcoin Forum
December 10, 2016, 04:50:09 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 »  All
  Print  
Author Topic: Double Trouble (Instant/Automatic) w/ Partial Refunds! [12hr rounds]  (Read 28366 times)
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
June 18, 2011, 02:24:39 AM
 #41

Nice same as me.  So will you immediately post a new btc address at midnight for tomorrows game?
I don't use a specific BTC address for payments (well I do, hrm...maybe I should post it?).
It uses the SCI from mybitcoins.com (btw, if you use mybitcoins.com you can get free transactions instead of paying the program fee of 0.0005BTC. As the host, I still take the 1% and 2% fees).

The database goes through, splits the earnings (look a few post up about the math of that), deletes the database, and re-creates it.

[Edit]: The code is now in-place for refunds:
Code:
//get total amount the unpaid users have put in
$total = 0;
foreach($Id as $user)
{
$total = $Amount[$user] + $total; //they have in pot togeder
}

//spin for each user
foreach($Id as $userz)
{
$share[$userz] =  ( $Amount[$userz] * $total )/count($Id);
$amount2send[$userz] = $share[$userz] - ($share[$userz]/200); //take 2% for end of game fee ;D
mbc_spend($Address[$userz],$amount2send[$userz],"[BitDouble]: {End-of-Day} Refund!","");

//1 night, we need to logg this
$fh = fopen(--onebaddasshiddenfile--, 'a');
fwrite($fh, "[sending]: ".$amount2send[$userz]."\n");
fwrite($fh, "[Shares]: ".$share[$userz]."\n");
fwrite($fh, "[Account]: ".$Address[$userz]."\n\n");
fclose($fh);
}
This is the exact code I am using to split the shares.
If ANYONE sees anything wrong, please let me know!
ps, I am logging what get's shared for 1 night to make sure it goes smoothly. If not, having this log will allow me to see what went wrong.

1481388609
Hero Member
*
Offline Offline

Posts: 1481388609

View Profile Personal Message (Offline)

Ignore
1481388609
Reply with quote  #2

1481388609
Report to moderator
1481388609
Hero Member
*
Offline Offline

Posts: 1481388609

View Profile Personal Message (Offline)

Ignore
1481388609
Reply with quote  #2

1481388609
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481388609
Hero Member
*
Offline Offline

Posts: 1481388609

View Profile Personal Message (Offline)

Ignore
1481388609
Reply with quote  #2

1481388609
Report to moderator
1481388609
Hero Member
*
Offline Offline

Posts: 1481388609

View Profile Personal Message (Offline)

Ignore
1481388609
Reply with quote  #2

1481388609
Report to moderator
WiseOldOwl
Full Member
***
Offline Offline

Activity: 224



View Profile
June 18, 2011, 02:33:20 AM
 #42

Let me be the first to suggest running this one until 2moro nite...lol. Didnt know what time it was where you are.

http://cryptoswap.com
XRP/BTC/LTC/BTE
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
June 18, 2011, 02:34:40 AM
 #43

Let me be the first to suggest running this one until 2moro nite...lol. Didnt know what time it was where you are.
So, instead of resetting each night...wait two nights?

WiseOldOwl
Full Member
***
Offline Offline

Activity: 224



View Profile
June 18, 2011, 02:41:36 AM
 #44

 :-\yeah.?.?
Just this time because we didnt know what time it is. I dont really care that much but if other people feel the same way maybe.

Edit* Why'd my nervous/uneasy face come out like that??haha

http://cryptoswap.com
XRP/BTC/LTC/BTE
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
June 18, 2011, 02:43:43 AM
 #45

Okay, I see.
I'll leave the first night (tonight) alone.
I'll have it setup so from tomorrow it will reset each midnight (clock is still going to be at the top).

[Edit]:
I added some code to the front page to:
1) Refresh every 30 seconds.
2) After it refreshes the first time you will notice ?pot_only is appended to the link. This will change the title to show how big the pot currently is. Saving you time from having to go back to the page and refreshing it every so often.

Hope everyone likes the updates. Cheesy


WiseOldOwl
Full Member
***
Offline Offline

Activity: 224



View Profile
June 18, 2011, 03:05:26 AM
 #46

Nice!!
Thanks for letting it ride.

http://cryptoswap.com
XRP/BTC/LTC/BTE
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
June 18, 2011, 03:28:01 AM
 #47

Nice!!
Thanks for letting it ride.

No problem. Smiley

officialsavage
Full Member
***
Offline Offline

Activity: 154



View Profile
June 18, 2011, 03:35:17 AM
 #48

Well if your gonna let it ride until tomorrow night then I am in for another couple btc.
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
June 18, 2011, 03:37:23 AM
 #49

Well if your gonna let it ride until tomorrow night then I am in for another couple btc.
Yeah, I'm going to let it ride for tonight.

Also, not sure if anyone noticed there was two orange lines. I was checking if the next person's address. I changed it to check their transaction ID. (No problems, just a few table mistakes. No money lost). Cheesy

officialsavage
Full Member
***
Offline Offline

Activity: 154



View Profile
June 18, 2011, 03:45:19 AM
 #50

whoever just dumped in 5 is gonna get a nice payout tomorrow.
officialsavage
Full Member
***
Offline Offline

Activity: 154



View Profile
June 18, 2011, 03:53:47 AM
 #51

This ones moving nice, someone just got paid out 8 btc.
lemonginger
Full Member
***
Offline Offline

Activity: 210


firstbits: 121vnq


View Profile
June 18, 2011, 03:57:56 AM
 #52

I think the instant action and no need to wait for confirmations will keep this one humming along at nice pace for awhile.
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
June 18, 2011, 04:02:18 AM
 #53

I'm getting such great comments! Cheesy

Also, at this time...the game would have been reset for midnight (just in-case anyone was wondering about the time).
Though, this is the only night I'm not going to reset it (may do some other nights in the future...but I'll keep everyone posted).

Also, it would be awesome if I could get some more people to reply saying they got paid! Cheesy

officialsavage
Full Member
***
Offline Offline

Activity: 154



View Profile
June 18, 2011, 04:03:56 AM
 #54

Your pot is showing a negative number??  how is that possible?
WiseOldOwl
Full Member
***
Offline Offline

Activity: 224



View Profile
June 18, 2011, 04:07:05 AM
 #55

Also inquiring about - amount. is it due to unconfirmed status?

http://cryptoswap.com
XRP/BTC/LTC/BTE
Jakel-s
Member
**
Offline Offline

Activity: 92


View Profile
June 18, 2011, 04:08:44 AM
 #56

pot says .8017...
lemonginger
Full Member
***
Offline Offline

Activity: 210


firstbits: 121vnq


View Profile
June 18, 2011, 04:09:04 AM
 #57

i keep picturing wiseoldowl as an owl, sitting in a corner and smoking a pipe...

"Well when I was your age, I was the best bitcoin double trouble player in all the land...."
officialsavage
Full Member
***
Offline Offline

Activity: 154



View Profile
June 18, 2011, 04:10:08 AM
 #58

It was -2. something then the 3 came in bringing it back positive.   Seems odd that it can go negative.
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
June 18, 2011, 04:13:58 AM
 #59

Your pot is showing a negative number??  how is that possible?
I'm not sure what happen.
Nothing in my logs show anything being negative.

lemonginger
Full Member
***
Offline Offline

Activity: 210


firstbits: 121vnq


View Profile
June 18, 2011, 04:20:28 AM
 #60

yeah i saw it too, I was wondering if it had something to do with one of the transactions not being confirmed yet, but before I could put all the numbers in a spreadsheet and see why it might do that it had fixed itself. Regardless, it looks like it is moving/paying properly
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!