android
  #1  
Old 08-02-2010, 05:43 AM
Shackles Shackles is offline
Junior Member
 
Join Date: Jul 2010
Posts: 16
Default Sad quotes, when you are depressed! [[APP]]

Hello there ! You might not have seen me before since i'm new.
Im also new to LUA, and as a new you find it very boring to sit on your .. and read a book about it, so i decided to make an application for my zen. It randomly picks a quote from a selection of (10) quotes and prints it to the screen. To get a new one you have to tap the screen.
It is mostly for the days when you feel depressed.
Attached Files
File Type: zip Sad quotes.zip (150.8 KB, 308 views)

Last edited by Shackles; 08-02-2010 at 12:47 PM. Reason: editted due to habhome's post.
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 08-02-2010, 06:38 AM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default

Cute. And also, for help with the traffic jam game you should create a new dev-thread for it. So we keep discussions about different apps separated.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #3  
Old 08-20-2010, 02:51 PM
Mr Wunderbar's Avatar
Mr Wunderbar Mr Wunderbar is offline
Junior Member
 
Join Date: Jan 2010
Posts: 93
Default

i hope i will be allowed to make something using your code? its pretty much finished, so please say yes lol
__________________
If anyone wants to teach me a bit of lua, feel free.

~Mr Wunderbar
Reply With Quote

  #4  
Old 08-21-2010, 08:16 AM
Shackles Shackles is offline
Junior Member
 
Join Date: Jul 2010
Posts: 16
Default

Yea ofcourse, use it for anything you like
Also the main file is outdated, copy paste this pastebin into the main.lua file to update it
Reply With Quote

  #5  
Old 10-04-2010, 01:08 PM
matthijs1929's Avatar
matthijs1929 matthijs1929 is offline
Junior Member
 
Join Date: Sep 2010
Location: the netherlands
Posts: 40
Default `help

can somebody look at this.
I don't know whats wrong.
Attached Files
File Type: zip FUN.zip (81.7 KB, 12 views)
Reply With Quote

  #6  
Old 10-04-2010, 01:51 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by matthijs1929 View Post
can somebody look at this.
I don't know whats wrong.
The error is here:

Code:
Line 74: quote51 = ""I told my wife that a man is like a fine wine..."
Line 89: quote63 = ""What's the matter? Are you sick?" he asked. "
Line 74 contains one quote sign too many, and line 89 contains two quote signs too many.

It should be like this:

Code:
Line 74: quote51 = "I told my wife that a man is like a fine wine..."
Line 89: quote63 = "What's the matter? Are you sick? he asked. "
A string begins and ends with a quote ("). If you have more quotes it will confuse the interpreter and give errors. The text-editor Notepad++ adds colours to quoted lines (strings) so you will see such errors more easily.

Side note: If you still want to have the quotes on the display, you should add "\" in front of the quote.
Then it would be like this:
Code:
Line 74: quote51 = "\"I told my wife that a man is like a fine wine..."
Line 89: quote63 = "\"What's the matter? Are you sick?\" he asked. "
By the way, nice idea to make an app with fun quotes
__________________
this is a link to my personal homepage which I haven't

Last edited by Brett_val; 10-04-2010 at 10:21 PM.
Reply With Quote

  #7  
Old 10-06-2010, 08:04 AM
matthijs1929's Avatar
matthijs1929 matthijs1929 is offline
Junior Member
 
Join Date: Sep 2010
Location: the netherlands
Posts: 40
Default

could you also help me with make the sentences in the screen?
Attached Files
File Type: zip FUN.zip (81.7 KB, 3 views)
Reply With Quote

  #8  
Old 10-06-2010, 08:34 AM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by matthijs1929 View Post
could you also help me with make the sentences in the screen?
I send you a PM
__________________
this is a link to my personal homepage which I haven't
Reply With Quote

  #9  
Old 10-06-2010, 10:17 AM
matthijs1929's Avatar
matthijs1929 matthijs1929 is offline
Junior Member
 
Join Date: Sep 2010
Location: the netherlands
Posts: 40
Default

thanks brett_val

I made it. look.
Attached Files
File Type: zip funny quotes.zip (81.1 KB, 24 views)

Last edited by matthijs1929; 10-06-2010 at 10:23 AM.
Reply With Quote

  #10  
Old 10-06-2010, 02:04 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by matthijs1929 View Post
thanks brett_val

I made it. look.
Very nice, you figured it out
__________________
this is a link to my personal homepage which I haven't
Reply With Quote

Reply

Tags
application, depressed, quotes, sad, shackles

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 05:29 PM.