Re: C++ help [message #276517 is a reply to message #276426] |
Wed, 01 August 2007 08:07 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to previous message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/3415.gif) |
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma:
|
General (3 Stars) |
|
|
1) Pretty sure it's using the world box of the SSM.
2) I'm pretty sure it's just the else should be else if, but...
Declare the variable "PlayerCreds" as type int, and then.. oh fuck it, it's easier to show you:
int PlayerCreds = Commands->Get_Money(obj);
This will make it easier for you write and follow, so it would look something like (havn't tried it, most likely will give erros, but you get the idea):
if (PlayerCreds > 150) {
Commands->Give_Money(obj, -150, false);
if(Get_Team(ID) == 1) {
Change_Character(obj,"CnC_Nod_MiniGunner_0");}
}
else if (PlayerCreds < 150) {
//blah blah blah
3) I'm sure it's possible, as there is a weird bug that can cause it, but I havn't ever tried to do it on purpose
|
|
|