10-19-2009, 09:20 AM
(This post was last modified: 10-19-2009, 12:30 PM by Omniscient.)
hey guys.
I'm making a gambling script(will be posting it soon) but am i running against a problem.
error:
script part:
so can you guys help me?( rnwoncash is a number)
I'm making a gambling script(will be posting it soon) but am i running against a problem.
error:
Code:
Traceback (most recent call last):
File "C:\Python26\py2exe GUI\Kopie van gambling proto.py", line 217, in <module>
print "You won by colour! Profit: "+rnwoncash
TypeError: cannot concatenate 'str' and 'int' objects
script part:
Code:
elif rnuserchosencolour==rnchosencolour:
(line217)print "You won by colour! Profit: "+rnwoncash
rmoney+=rnwoncash
(this last lines are to stop looping)
xxx-=1
rightnumberbet-=1
rightbet-=1
wrongin-=1
so can you guys help me?( rnwoncash is a number)