Hello Guest

read function

  • 1 Replies
  • 61 Views
*

SCS

  • *
  • 1
  • +0/-0
    • View Profile
read function
« on: February 23, 2019, 05:33:19 am »
I am trying to add read function to a script. a user input.
I can't figure out how to use the read function

function dobet()

if win then
     nextbet=0.00000001
else
     nextbet=previousbet*2
end

if currentstreak==-5 or currentstreak==5 then
     Here I want to get user's input for both bet and chance.
end

end

How is this function used?
Thanks

*

Seuntjie

  • *****
  • 217
  • +0/-1
    • View Profile
Re: read function
« Reply #1 on: February 23, 2019, 09:03:20 am »
Like I said on discord, look at the tutorials on https://forum.seuntjie.com/index.php?topic=2.0 - specifically the steemit tutorial 10.2 - functions.