Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How to keep a score form procedure to procedure
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
NeutronX




PostPosted: Sun Nov 11, 2007 3:03 pm   Post subject: How to keep a score form procedure to procedure

Once again I need help on my racing game. I am almost done but I need help on the scoring. I have 3 races and you get 1 point for winning each race. Each race is in a separate procedure. I need help on keeping the score from one procedure and taking it to the next. For example if player 1 wins the first race they get 1 point. If they win the secord race (separate procedure) I want the score to be added plus 1 but I dont know how to keep that one point from the first race. Can someone plz help me with this? THX!
Sponsor
Sponsor
Sponsor
sponsor
HeavenAgain




PostPosted: Sun Nov 11, 2007 4:05 pm   Post subject: RE:How to keep a score form procedure to procedure

use a variable to keep the score, pass it to parameter and see who gets the socre,and/or return back the value of this score variable(if turing have one... forgot)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: