![]() |
|
#1
|
|||
|
|||
|
Question I have a Int ScoreBlue;
As smething is destroyed the score increase. ScoreBlue = ScoreBlue + 10; Is there a way to subtact from the Total in the int ScoreBlue; ? Which of these would be best or something else? ScoreBlue = ScoreBlue - 10; or ScoreBlue -= 10; or ScoreBlue =( 10-ScoreBlue ) something else?
__________________
__________________ Win7, 64bit Ultra Asus P8P67Pro MB Intel i7-2600K Coursair 16GB (4x 4GB), DDR3-1600MHz Gainward Nvidia 580GTX 3GB DDR5 850-Watt Modular Power Supply WIN7 and COD on Gskill SSD 240GB 40" Panasonic LCD TrackIR5 + Thrustmaster Warthog stick, throttle & pedals |
|
#2
|
|||
|
|||
|
There is no problem to subtract a int.
you can use: ScoreBlue = ScoreBlue - 10; or ScoreBlue -= 10; |
|
#3
|
|||
|
|||
|
Excellent
I am already using ScoreBlue = ScoreBlue - 10; But I had a panic attack thinking it may not actually subtract. All is well in coding land FYI the fruits of your's and my laybour is now uploaded on the ATAG server 2 and 1 i think RedvBlue_1.0 mission. Your assistance has been the key. Thanks!
__________________
__________________ Win7, 64bit Ultra Asus P8P67Pro MB Intel i7-2600K Coursair 16GB (4x 4GB), DDR3-1600MHz Gainward Nvidia 580GTX 3GB DDR5 850-Watt Modular Power Supply WIN7 and COD on Gskill SSD 240GB 40" Panasonic LCD TrackIR5 + Thrustmaster Warthog stick, throttle & pedals |
![]() |
| Thread Tools | |
| Display Modes | |
|
|