QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Help with....Updating numbers o.o

This is a discussion on Help with....Updating numbers o.o within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Ok, I didn't know how to say it or what to classify my question as. What I want to know ...

Closed Thread
 
LinkBack Thread Tools
Old 04-15-2007, 06:16 PM   #1
 
Join Date: Apr 2007
Posts: 81
Trader Feedback: 0
Default Help with....Updating numbers o.o

Ok, I didn't know how to say it or what to classify my question as. What I want to know is how to make numbers update. I'm making a PSP calculator for myself. It works fine except for one problem. When I press X, instead of making the number go up, it prints it again. Lets say I wanted 4+5. It would go
1+0
2+0
3+0
4+0
4+1
4+2
4+3
4+4
4+5

It will print that with every key press. I want it to update one number. Heres what I have for code.
Code:
while(1){
         sceCtrlReadBufferPositive(&pad, 1);
         if(pad.Buttons & PSP_CTRL_CROSS) {
                    i++;
                    printf("\n #1 is %i",i);
          }
          sceCtrlReadBufferPositive(&pad, 1);
         if(pad.Buttons & PSP_CTRL_SQUARE) {
                    l++;
                    printf("\n #2 is %i",l);
          }
         if(pad.Buttons & PSP_CTRL_CIRCLE) {
                        break;
                        }
}
The addition works fine and all. It just gets confusing when the numbers fill the PSP screen instantly.


Help plooooooooooxxx
yumCOOKIEZZ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-15-2007, 06:19 PM   #2
 
Brad's Avatar
 
Join Date: Jul 2005
Posts: 4,433
Trader Feedback: 0
Default

Please use the C Help thread. I merged your last topic into it.

Link
__________________
[COLOR="DarkOrange"][B]Brad.[/B][/COLOR]
[URL="http://forums.qj.net/showthread.php?t=111647"][B][COLOR="DarkRed"][I]Forum Policies[/I][/COLOR][/B][/URL]
Brad is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Tags
numbers , withupdating

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 06:39 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us