Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
Help Guys ...
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-08-2011, 01:14 PM
Newcomer
 
Join Date: Oct 2011
Posts: 1
Question Help Guys ...

can you help me with this problem ...

example:

Quote:
WELCOME to our REStaurant
CODE Name PRICE
1 Chicken $5
2 burger $2
3 Hotdog $3

What is your order sir ?[Enter the Code]: 1
Your order is: Chicken
//if i enter a code that dont have in the menu .. it will ask again for the code

Enter Quantity: 1

Do you want to enter again? (y/n) :

//if i enter Y it will loop again ...
//if i enter N it will show the receipt

===RECEIPT===
customer 1: $5
customer 2: $6
---------
$11 // all his order will be add ...

its just an example .... im stuck with that .. that how i can make that if i enter Y , 5 times it will show Customer 5 and then add the price ...
Reply With Quote
  #2  
Old 10-10-2011, 10:49 PM
Guru
 
Join Date: Jul 2005
Posts: 1,355
Send a message via MSN to wackywamba
Default Re: Help Guys ...

Not sure what your question is exactly?

Just use a while loop by the sounds of things.
__________________

Last edited by wackywamba : 10-12-2011 at 02:38 PM.
Reply With Quote
  #3  
Old 10-12-2011, 06:04 AM
Active Member
 
Join Date: Sep 2011
Location: My chair
Posts: 157
Send a message via MSN to Ortho
Default Re: Help Guys ...

Make a counter for each customer. Whenever chicken is chosen for customer 1, counter1 += 5

Also, Y makes it go through the loop again, it doesn't necessarily mean the user is adding another chicken to the order

Last edited by Ortho : 10-12-2011 at 06:06 AM.
Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 01:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1