Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Behdadsoft
17
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 3rd May 2013 14:32
Hello

I write a simple function and when i run it, show this message :

My function:


Quote: "
You have hit a FUNCTION declaration mid-program!
"


Please Guid me
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 3rd May 2013 14:39
PrintHello() //you have to CALL the function to activate it

PrintHello()
PrintHello()
PrintHello()
wait key
end //dont forget to close the app before it reaches the function it self.
FUNCTION PrintHello()
PRINT "Hello!"
ENDFUNCTION

Advanced Updater for your games!
Behdadsoft
17
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 3rd May 2013 14:48
I don't understand

my full code:

Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 3rd May 2013 15:00 Edited at: 3rd May 2013 15:00
you making a function so you can call the function make to run it.



Advanced Updater for your games!
Behdadsoft
17
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 3rd May 2013 15:09
Thanks Sergey K

I forget it.

Login to post a reply

Server time is: 2026-07-08 10:16:26
Your offset time is: 2026-07-08 10:16:26