Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++ help
Re: C++ help [message #276517 is a reply to message #276426] Wed, 01 August 2007 08:07 Go to previous messageGo to previous message
reborn is currently offline  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



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: AI Pathfind fake out?
Next Topic: Idea?
Goto Forum:
  


Current Time: Thu Feb 06 02:49:36 MST 2025

Total time taken to generate the page: 0.01016 seconds