Page 4 of 6 FirstFirst 123456 LastLast
Results 31 to 40 of 55

Thread: Noob Question

                  
   
  1. #31
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    does anyone know how to do this??
    please?
    EDIT::Looked at some source code, fixed it

  2. #32
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    Ok im sorry im asking so many questions but now i have ANOTHER problem. How do i edit and add onto strings??

    message += "a";

    i try it like this, but it doesnt work, how would i code this correctly???

  3. #33
    DCEmu Old Pro
    Join Date
    Nov 2006
    Posts
    1,011
    Rep Power
    72

    Default

    Use strncat


    char *strncat(char * restrict s1,const char * restrict s2, size_t n);

    The strncat function appends not more than n characters (a null character and characters that follow it are not appended) from the array pointed to by s2 to the end of the string pointed to by s1. The initial character of s2 overwrites the null character at the end of s1. A terminating null character is always appended to the result.Thus, the maximum number of characters that can end up in the array pointed to by s1 is strlen(s1)+n+1. If copying takes place between objects that overlap, the behavior is undefined.

  4. #34
    DCEmu Regular titch.ryan's Avatar
    Join Date
    Nov 2005
    Location
    Gold Saucer
    Posts
    428
    Rep Power
    73

    Default

    try learning lua its alot easier

  5. #35
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    thank you very jamoot, it works, and ticth, i don't want to learn lua right now because im only 13 and might be a video game designer so it might help if i know the basics of C.
    EDIT::How would I clear a string??

  6. #36
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    Please?????

  7. #37
    DCEmu Old Pro
    Join Date
    Nov 2006
    Posts
    1,011
    Rep Power
    72

    Default

    It would help if you show us a little bit of code, so people can see exactly what it is your doing.

  8. #38
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    Ok, im trying to make an ad-hoc messenger, i just started coding for the psp so im not very good. For the ad-hoc stuff i will be using this tutorial.
    forums.qj.net/archive/index.php/t-55788.html so you dont need to worry about that.
    I wanted to do this because i have not found one of these and would like one(if there is one plz tell me) I am now working one the text editing stuff, right now only one letter works(but i know how to make them all work) and i need to now how to backspace or clear the text or something, ive included my source code, makefile, and images.

  9. #39
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    69

    Lightbulb text invaders

    I think you should use your Space Invader Assault Ship
    to shoot the letters ,
    so they disappear..

  10. #40
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    Why?!?!?!?

Page 4 of 6 FirstFirst 123456 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •