Show Posts
|
Pages: [1]
|
Yes, you are right, but i don't know where to put it
|
|
|
Hey, i'm new on codeing and i am stuck I have a code in bash and i want to make it to increment or decrement, but i can t make it right When i run the script, it\s workin' but increments only 1 number Exemple: 1 1 1 1 This is the code #!/bin/bash# #Alchimie Fibonacci
nrstreak=0 bet=0.00000000
id=$1
echo "BET $bet" won=`./bet 0.1 49 "<"`
############# CURRENTSTREAK ####################### if [ "$won" == "true" ] && [ "$nrstreak" -ge 0 ]; then ((nrstreak++)) echo "WON! +++" elif [ "$won" == "true" ] && [ "$nrstreak" -lt 0 ]; then echo "WON!" fi
if [[ "$won" == "false" && "$nrstreak" -le 0 ]]; then ((nrstreak--)) echo "LOSE! ---" elif [[ "$won" == "false" && "$nrstreak" -gt 0 ]]; then echo "LOSE!" fi ####################################################
echo "Nr_Streak = $nrstreak"
echo "---------------------------" sleep 0.5
This in the result BET 0.1 LOSE! Nr_Streak = -1 --------------------------- BET 0.1 LOSE! Nr_Streak = -1 --------------------------- BET 0.1 WON! Nr_Streak = 1 --------------------------- BET 0.1 WON! Nr_Streak = 1 --------------------------- Thank you, please excuse my bad english.
|
|
|
Your issues seems to be unrelated.
I don't know what to say, i tried the same settings on different computers, different windows. And yes, i don't have any other programs running to "eat" my Rams... I think i m paranoic.... the PD, blocking me ![Huh](https://bitcointalk.org/Smileys/default/huh.gif)
|
|
|
Please help, after 11 hours of running the bot is Not responding and force to close.
try renaming the dicebot.db file while the bot is closed and see if that helps i tried to rename de .db , it's always the same error...and stuck ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgsafe.org%2Fe94eb48713.png&t=663&c=e4nOkJLXVPQQCQ) and this is the content of error: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.TimeZoneInfo.GetDaylightTime(Int32 year, AdjustmentRule rule) at System.TimeZoneInfo.GetIsDaylightSavingsFromUtc(DateTime time, Int32 Year, TimeSpan utc, AdjustmentRule rule, Boolean& isAmbiguousLocalDst, TimeZoneInfo zone) at System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc(DateTime time, Boolean& isAmbiguousLocalDst) at System.DateTime.get_Now() at DiceBot.cDiceBot.tmBetting_Tick(Object sender, EventArgs e) at System.Windows.Forms.Timer.OnTick(EventArgs e) at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies ************** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- DiceBot Assembly Version: 3.2.3.0 Win32 Version: 3.2.3.0 CodeBase: file[Suspicious link removed] ---------------------------------------- System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- SharpLua Assembly Version: 2.0.4696.34005 Win32 Version: 2.0.0.0 CodeBase: file:///C:/Users/wpuser05/Desktop/DiceBot-3.2.4/SharpLua.DLL ---------------------------------------- System.Windows.Forms.DataVisualization Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll ---------------------------------------- System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Data.SQLite Assembly Version: 1.0.94.0 Win32 Version: 1.0.94.0 CodeBase: file:///C:/Users/wpuser05/Desktop/DiceBot-3.2.4/System.Data.SQLite.DLL ---------------------------------------- System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll ---------------------------------------- System.Transactions Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll ---------------------------------------- System.EnterpriseServices Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll ---------------------------------------- System.Net.Http Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll ---------------------------------------- PresentationCore Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll ---------------------------------------- WindowsBase Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll ---------------------------------------- System.Runtime.Serialization Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll ---------------------------------------- SMDiagnostics Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll ---------------------------------------- System.ServiceModel.Internals Assembly Version: 4.0.0.0 Win32 Version: 4.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll ---------------------------------------- Microsoft.VisualBasic Assembly Version: 10.0.0.0 Win32 Version: 14.6.1055.0 built by: NETFXREL2 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll ----------------------------------------
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
<configuration> <system.windows.forms jitDebugging="true" /> </configuration>
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
|
|
|
hello, How can i implement the QR Code because im getting this error "Unauthorized", and im sure 100% is from that QR Code Security.. And another question is : i have a my own strategy that I have been using on primedice , how can i add to this python code?
thanks
|
|
|
Hey,
Please help, after 11 hours of running the bot is Not responding and force to close.
|
|
|
anybody? ![Cry](https://bitcointalk.org/Smileys/default/cry.gif)
|
|
|
I have an issue with a script, when is on 24-26 bet hand, the dice bot remain stuck for 5 minutes after gives me the error from picture ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fs11.postimg.org%2Fo5h728yxf%2Fimage.png&t=663&c=chgep56jDt5Miw) This is the script: chance1=18 chance2=21 chance3=24 chance4=28 chance5=37 chance6=45 chance7=48 base=0.00000000 nextbet=base contorserie=0 samanta=0 lowsauhigh=0 lowhighRANDOM=1
function fibonacci(n) if n<3 then return 1 else return fibonacci(n-1) + fibonacci(n-2) end end
function dobet()
samanta=math.random(1,8)
if lowhighRANDOM==1 then lowsauhigh=math.random(0,1) if lowsauhigh==0 then bethigh=false else bethigh=true end else bethigh=true end
-- A castigat! Reseteaza contorserie, nextbet si seriemartingale if (win and currentstreak==1) and (contorserie>0 and previousbet>0) then nextbet=base contorserie=0 chance=math.random(chance1,chance2) end
-- CICLU NORMAL -- ----------------------------
-- A pierdut. Mareste pariul if (win==false and currentstreak==-3) and contorserie<=10 then nextbet=fibonacci(contorserie)/100000000 end
-- Au venit doua rosii. Mareste contorserie si fa urmatorul BET la cat a ajuns seriemartingale if win==false and currentstreak==-2 and contorserie<=10 then contorserie=contorserie+1 chance=math.random(chance1,chance2) nextbet=fibonacci(contorserie)/100000000 end
-- ----------------------------
-- CICLU DE URGENTA 1 -- ----------------------------
-- A pierdut. Mareste pariul if win==false and currentstreak==-3 and (contorserie>10 and contorserie<=15) then nextbet=fibonacci(contorserie)/100000000 end
-- Au venit doua rosii. Mareste contorserie si fa urmatorul BET la cat a ajuns seriemartingale if win==false and currentstreak==-2 and (contorserie>10 and contorserie<=15) then contorserie=contorserie+1 chance=math.random(chance2,chance3) nextbet=fibonacci(contorserie)/100000000 end
-- ----------------------------
-- CICLU DE URGENTA 2 -- ----------------------------
-- A pierdut. Mareste pariul if win==false and currentstreak==-3 and (contorserie>15 and contorserie<=22) then nextbet=fibonacci(contorserie)/100000000 end
-- Au venit doua rosii. Mareste contorserie si fa urmatorul BET la cat a ajuns seriemartingale if win==false and currentstreak==-2 and (contorserie>15 and contorserie<=22) then contorserie=contorserie+1 chance=math.random(chance3,chance4) nextbet=fibonacci(contorserie)/100000000 end
-- ----------------------------
-- CICLU DE URGENTA 3 -- ----------------------------
-- A pierdut. Mareste pariul if win==false and currentstreak==-3 and (contorserie>22 and contorserie<=27) then nextbet=fibonacci(contorserie)/100000000 end
-- Au venit doua rosii. Mareste contorserie si fa urmatorul BET la cat a ajuns seriemartingale if win==false and currentstreak==-2 and (contorserie>22 and contorserie<=27) then contorserie=contorserie+1 chance=math.random(chance4,chance5) nextbet=fibonacci(contorserie)/100000000 end
-- ----------------------------
-- CICLU DE URGENTA 4 -- ----------------------------
-- A pierdut. Mareste pariul if win==false and currentstreak==-3 and (contorserie>27 and contorserie<=30) then nextbet=fibonacci(contorserie)/100000000 end
-- Au venit doua rosii. Mareste contorserie si fa urmatorul BET la cat a ajuns seriemartingale if win==false and currentstreak==-2 and (contorserie>27 and contorserie<=30) then contorserie=contorserie+1 chance=math.random(chance6,chance7) nextbet=fibonacci(contorserie)/100000000 end
-- ----------------------------
-- Pica RED dar secventa nu e de DOUA if (win==false and currentstreak>-2) or (win==false and currentstreak<-2) then nextbet=base chance=math.random(chance1,chance2) end
if samanta==3 then resetseed() end
end
|
|
|
|