Is this a bug?
you ate 0 grams?
Moderators: Public Relations Department, Players Department, Programming Department
- fishfin
- Posts: 490
- Joined: Mon Mar 20, 2006 12:38 pm
- Location: Nanning, China
you ate 0 grams?
1640-1.07: You ate 0 grams of your grilled meat.
Is this a bug?
Is this a bug?
The following statement is not true.
The previous statement is not true.
The previous statement is not true.
- april
- Posts: 46
- Joined: Thu Aug 24, 2006 9:58 pm
- Location: Lithuania, Kaunas
I also have got the same line for one of my chars yesterday. And its not even the first time this appears. Before this my char has eaten all of his smoked meat and then 0g of grilled meat.
1640-1.08: Tu suvalgei 0 gramų savo rūkyta mėsa. (You ate 0g of your smoked meat)
1640-1.08: Tu suvalgei visą savo kepta mėsa. (You ate all of your grilled meat)
- Chris Johnson
- Posts: 2903
- Joined: Wed Dec 01, 2004 3:26 pm
- Location: East Sussex, United Kingdom
- Contact:
- fishfin
- Posts: 490
- Joined: Mon Mar 20, 2006 12:38 pm
- Location: Nanning, China
- Chris Johnson
- Posts: 2903
- Joined: Wed Dec 01, 2004 3:26 pm
- Location: East Sussex, United Kingdom
- Contact:
- april
- Posts: 46
- Joined: Thu Aug 24, 2006 9:58 pm
- Location: Lithuania, Kaunas
- wichita
- Administrator Emeritus
- Posts: 4427
- Joined: Mon Jan 17, 2005 6:46 pm
- Location: Suomessa!
Wait wait wait.....you want to change how it rounds so that it will round up and you will eat more food, just to satisfy the grammar?
I think this is the first time I have heard players complaining about not eating enough of their food. 
"Y-O-U! It's just two extra letters! Come on, people! This is the internet, not a barn!" --Kid President
- deadboy
- Posts: 1488
- Joined: Mon Jan 16, 2006 6:41 pm
- Location: England
- Elros
- Posts: 1511
- Joined: Sat Jul 22, 2006 5:41 pm
- Location: South Carolina, USA
The reason it says "0 grams" is probably because in the programing the Variable is type "Integer" instead of a "Double" which means that it only shows "real numbers"(0, 1, 2, 3, 4 ect...) and not "mixed numbers"(0.45, 1.97, 2.56 ect...). If the variable is mixed it will just round it to the nearest whole number. Hence:
0.45 = 0

0.45 = 0
-
Talapus
- Posts: 1452
- Joined: Thu Jun 02, 2005 9:05 pm
- Location: Montana
- Elros
- Posts: 1511
- Joined: Sat Jul 22, 2006 5:41 pm
- Location: South Carolina, USA
Who is online
Users browsing this forum: No registered users and 1 guest
