Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
is there an actual "terminate" command #235781
11/10/08 03:30
11/10/08 03:30
Joined: Oct 2008
Posts: 67
pewpew Offline OP
Junior Member
pewpew  Offline OP
Junior Member

Joined: Oct 2008
Posts: 67
hey just wondering, as the topic suggests, what the command is to terminate your program?

say you have a menu, with 3 options
1.play
2.settings
3.quit

when the user selects option 3, my game just kinda.. crashes. but not in a bad way. everything just stops. it doesnt actually close the window. here is how my code works in theory:

var option = 0

function main()
{
while(option != 3)
{
print all 3 menu options;
get user input and store it in the variable "option";
}
}


HURRR DERP DERP DEERRPP HURR
Re: is there an actual "terminate" command [Re: pewpew] #235784
11/10/08 04:00
11/10/08 04:00
Joined: Oct 2008
Posts: 218
Nashua NH
heinekenbottle Offline
Member
heinekenbottle  Offline
Member

Joined: Oct 2008
Posts: 218
Nashua NH
sys_exit("char or string")


I was once Anonymous_Alcoholic.

Code Breakpoint;
Re: is there an actual "terminate" command [Re: heinekenbottle] #235786
11/10/08 04:26
11/10/08 04:26
Joined: Oct 2008
Posts: 67
pewpew Offline OP
Junior Member
pewpew  Offline OP
Junior Member

Joined: Oct 2008
Posts: 67
thanks heaps laugh


HURRR DERP DERP DEERRPP HURR

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1