Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isn't this working?

Asked by 10 years ago

I'm trying to practice scripting, in this case my returning, and when I try to run the script, it says there is an error in line 16. Something about a string value. Whats wrong?


pie=65 function problem() print="hi" print="hi" print="hi" print="hi" return 100 end print (pie) pie= problem() print (pie)

1 answer

Log in to vote
0
Answered by
2eggnog 981 Moderation Voter
10 years ago

It's always print(text), not print=text.

pie=65

function problem()
    print("hi")
    print("hi")
    print("hi")
    print("hi")
     return 100
end

print (pie)

pie= problem()

print (pie)
0
OH InfernoChaosInfinity 2 — 10y
Ad

Answer this question