The Dink Network

Reply to Re: &savegameinfo

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
July 29th 2002, 07:15 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
Freaks. Here's the truth of this DinkC mystery (for you two then) :

//This is the choice menu when you want to load a savegame. If a

//savegame exists, it'll show the info of the savegame. However,

//choosing one of the options in this menu won't load the savegame

//without the correct &result

choice_start();

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"Nevermind"

choice_end();

//The following (in the Escape menu) will check if the game exists

//See, it gives the value of the result from the choice menu above

//and then it checks with game_exist if the game exists. If this

//returns 0, the game doesn't exist.

if (game_exist(&result) == 0)

{

//Actions here to say the game doesn't exist

}

//The following will load the game if it exists. It'll load the game

//from the &result from the choice menu. So if you choose savegame 3,

//&result will be 3 and this command will load savegame 3

load_game(&result);

//Oh, and this saves a game - the player chooses where to save the

//game and then the game will be saved:

save_game(&result);