Outdoor shop.

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: Outdoor shop.
Warrior
Member # 1451
Profile Homepage #0
My code:
beginstate 18;
reset_dialog(); // Dialog box here
add_dialog_str(0,"Description.",0);
add_dialog_str(1,"Knock?",0);
add_dialog_choice(0,"Knock.");
add_dialog_choice(1,"Leave.");
run_dialog(1);
if (choice == 1) // Conditions
{
begin_shop_mode("Name","Description.",4,3,-1); // Shop No 4,
} //moderate buy, no sell
if (choice == 2)
{
end();
}
break; // End
Now, why doesn't it work like it's supposed to? There is no response from the game, no matter if I choose option one or two. Just as if I put end(); in both choices. It's clearly supposed to be a shop.

Anyone has a clue?

[ Friday, July 02, 2004 11:07: Message edited by: Abu Dhabi ]

--------------------
I am pleased to make contact with your entities.
Posts: 123 | Registered: Sunday, July 7 2002 07:00
Warrior
Member # 286
Profile #1
You haven't actually set the variable "choice" to anything. You have to explicitly assign it to run_dialog(), like this:

choice=run_dialog(1)

--------------------
Z: "I just feel so insignificant."
Psych: "You ARE. You're an ANT."
--Antz
Posts: 104 | Registered: Saturday, November 17 2001 08:00
Infiltrator
Member # 154
Profile #2
Also, a question. Why are you putting the { bracket on a new line? You don't need to and it looks weird.

--------------------
Apparently still annoying.
Posts: 612 | Registered: Saturday, October 13 2001 07:00
Warrior
Member # 1451
Profile Homepage #3
quote:
Originally written by Shining Lightbulb:

Also, a question. Why are you putting the { bracket on a new line? You don't need to and it looks weird.
It may look weird to you, but I have issues about condition statements in programming -- if I don't put them there I end up confused as to where the statement ends and where the next begins. I guess it's a personal thing.

--------------------
I am pleased to make contact with your entities.
Posts: 123 | Registered: Sunday, July 7 2002 07:00