
-----------------------------------
bc123
Tue Dec 01, 2009 3:33 pm

SLOTS error
-----------------------------------
What is it you are trying to achieve?
Im trying to make a fully working slots game (simple way with 3 in row not 9 images)


What is the problem you are having?
where im inputing images Describe what you have tried to solve this problem
using a text file but i dont kno how to fix the thing where you cant put spaces in txt file cuz it skips to next line instead of reading whole line


Post any relevant code



var wheel1 : int
var wheel2 : int
var wheel3 : int
var quarter :  real := 0.25
var looney : real := 1.00
var tooney : real := 2.00
var wheeltotal : int
var money : real := 0
var moneyinput : int
setscreen ("graphics:max;max")
color (10)
colorback (black)
cls
put "Welcome to CASINO ROYALE, you are using a slot machine."
delay (2000)
loop
locate (1,1)
put "INSERT COIN 


im using 4.1.1

-----------------------------------
DemonWasp
Tue Dec 01, 2009 3:53 pm

RE:SLOTS error
-----------------------------------
To read a whole line, including spaces, use :* at the end of your get line, as follows:


get string_variable : *


Each time you use put, it replaces the entire line of text it outputs to. There is, to my knowledge, no way to change that behaviour. In general, one would try to use only images (Pic, Draw and Font modules) or only text (locate, put, Text module) at any given time.

-----------------------------------
Zren
Tue Dec 01, 2009 3:55 pm

RE:SLOTS error
-----------------------------------
get thingy :*
The :* will include the whitespace.
