Hi, I was trying to make a slot machine, I got the mechanics and stuff figured out, but how do I make it to where if inputx inputy and inputz match, it prints winner? I tried and tried, but all it does is print Loser. How do I fix this? Thanks a bunch.
Code
(Sorry for using a picture, but I don't know how do get code from CCDesk)
(If you want text code, let me know, I can work something out.)
-Agoldfish
Slot Machine Help?
Started by Agoldfish, Oct 26 2013 06:12 PM
2 replies to this topic
#1
Posted 26 October 2013 - 06:12 PM
#2
Posted 26 October 2013 - 07:47 PM
if random == random1 and random1 == random2 then
print("Winner!")
else
print("Looser!")
end
#3
Posted 27 October 2013 - 10:23 AM
Freack100, on 26 October 2013 - 07:47 PM, said:
if random == random1 and random1 == random2 then
print("Winner!")
else
print("Looser!")
end
Never mind, I did this instead, and it worked.
if random == random 2 and random 2 == random 3 then --code
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











