Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++ script ERROr can anyone help me
C++ script ERROr can anyone help me [message #336473] Sat, 21 June 2008 15:20 Go to next message
cpjok is currently offline  cpjok
Messages: 425
Registered: September 2007
Karma: 0
Commander
ok the files wont compile with these in anyone know how i can fix them


class commandsChatCommand : public ChatCommandClass {
   void Triggered(int ID,const TokenClass &Text,int ChatType) {
      GameObject *obj = Get_GameObj(ID);
char message[256];
Console_Input(StrFormat("ppage %d [BZ-BOT]: !weather , !weaps , !nodchars , !gdichars , !cash , !points , !extra",ID).c_str());
						}
		else{
Console_Input(StrFormat("ppage %d Failed To Show Commands",Get_Player_ID(obj)).c_str()); 
		}	
	}
};
ChatCommandRegistrant<commandsChatCommand> commandsChatCommandReg("!commands",CHATTYPE_ALL,0,GAMEMODE_AOW);


class weathersChatCommand : public ChatCommandClass {
   void Triggered(int ID,const TokenClass &Text,int ChatType) {
      GameObject *obj = Get_GameObj(ID);
char message[256];
Console_Input(StrFormat("pamsg %d !snow - !desnow , !rain - !derain , !snow - !desnow , !ash - !deash , !warblitz - !dewarblitz , !lightning - !delightning , !clouds - !declouds , !frain - !defrain , !fog - !defog",ID).c_str());
						}
		else{
Console_Input(StrFormat("ppage %d Failed To Show Commands",Get_Player_ID(obj)).c_str()); 
		}	
	}
};
ChatCommandRegistrant<commandsChatCommand> commandsChatCommandReg("!weather",CHATTYPE_ALL,0,GAMEMODE_AOW);


class weaponsChatCommand : public ChatCommandClass {
   void Triggered(int ID,const TokenClass &Text,int ChatType) {
      GameObject *obj = Get_GameObj(ID);
char message[256];
Console_Input(StrFormat("pamsg %d !ramjet - 650 , !rail - 600 , !pic - 575 , !volt - 625 , !chain - 100 , !chem - 200 , !flame - 20 , !gren - 20 , !lchain - 275 , !proxy - 350 , !laser - 300 , !remote - 225 , !mine - 175 , !repair - 300 , !rocket - 300 , !shotgun - 20 , !sniper - 400 , !tib - 175 , !flech 375",ID).c_str());
						}
		else{
Console_Input(StrFormat("ppage %d Failed To Show Weapons",Get_Player_ID(obj)).c_str()); 
		}	
	}
};
ChatCommandRegistrant<weaponsChatCommand> weaponsChatCommandReg("!weaps",CHATTYPE_ALL,0,GAMEMODE_AOW);


class gdicharsChatCommand : public ChatCommandClass {
   void Triggered(int ID,const TokenClass &Text,int ChatType) {
      GameObject *obj = Get_GameObj(ID);
char message[256];
Console_Input(StrFormat("pamsg %d !petrova - 6500.",ID).c_str());
						}
		else{
Console_Input(StrFormat("ppage %d Failed To Show gdichars",Get_Player_ID(obj)).c_str()); 
		}	
	}
};
ChatCommandRegistrant<gdicharsChatCommand> gdicharsChatCommandReg("!gdichars",CHATTYPE_ALL,0,GAMEMODE_AOW);


class nodcharsChatCommand : public ChatCommandClass {
   void Triggered(int ID,const TokenClass &Text,int ChatType) {
      GameObject *obj = Get_GameObj(ID);
char message[256];
Console_Input(StrFormat("pamsg %d !roshambo - 6250.",ID).c_str());
						}
		else{
Console_Input(StrFormat("ppage %d Failed To Show nodchars",Get_Player_ID(obj)).c_str()); 
		}	
	}
};
ChatCommandRegistrant<nodcharsChatCommand> nodcharsChatCommandReg("!nodchars",CHATTYPE_ALL,0,GAMEMODE_AOW);


class extrasChatCommand : public ChatCommandClass {
   void Triggered(int ID,const TokenClass &Text,int ChatType) {
      GameObject *obj = Get_GameObj(ID);
char message[256];
Console_Input(StrFormat("pamsg %d !iong - 2750 , !ionn - 2750 , !terrorist - 1000 , !fly - 400 , !sellveh , !ss - 1000.",ID).c_str());
						}
		else{
Console_Input(StrFormat("ppage %d Failed To Show extras",Get_Player_ID(obj)).c_str()); 
		}	
	}
};
ChatCommandRegistrant<extrasChatCommand> extrasChatCommandReg("!extras",CHATTYPE_ALL,0,GAMEMODE_AOW);


class credstChatCommand : public ChatCommandClass {
   void Triggered(int ID,const TokenClass &Text,int ChatType) {
      GameObject *obj = Get_GameObj(ID);
char message[256];
Console_Input(StrFormat("pamsg %d !2000c - 1000 Points.",ID).c_str());
						}
		else{
Console_Input(StrFormat("ppage %d Failed To Show credst",Get_Player_ID(obj)).c_str()); 
		}	
	}
};
ChatCommandRegistrant<credstChatCommand> credstChatCommandReg("!cash",CHATTYPE_ALL,0,GAMEMODE_AOW);


class pointstChatCommand : public ChatCommandClass {
   void Triggered(int ID,const TokenClass &Text,int ChatType) {
      GameObject *obj = Get_GameObj(ID);
char message[256];
Console_Input(StrFormat("pamsg %d !1000p - 4000.",ID).c_str());
						}
		else{
Console_Input(StrFormat("ppage %d Failed To Show pointst",Get_Player_ID(obj)).c_str()); 
		}	
	}
};
ChatCommandRegistrant<pointstChatCommand> pointstChatCommandReg("!points",CHATTYPE_ALL,0,GAMEMODE_AOW);
Re: C++ script ERROr can anyone help me [message #336484 is a reply to message #336473] Sat, 21 June 2008 16:05 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
If you want help, post the error messages that the compiler gives you...
Re: C++ script ERROr can anyone help me [message #336494 is a reply to message #336473] Sat, 21 June 2008 16:25 Go to previous messageGo to next message
cnc95fan is currently offline  cnc95fan
Messages: 1260
Registered: July 2007
Karma: 0
General (1 Star)
If it is the same error message over and over then don't post them all.

Cabal8616 wrote on Sun, 27 April 2008 15:50

I say a personal fanning of the genitals would be awesome.


RA3 AUTOMATICLY SUCKS
www.battlefordune.co.uk
Re: C++ script ERROr can anyone help me [message #336519 is a reply to message #336473] Sat, 21 June 2008 17:22 Go to previous messageGo to next message
a000clown
Messages: 363
Registered: May 2005
Location: Canada
Karma: 0
Commander
Not just you, but do people here not know how to use the tab button and follow proper source formatting?
It makes things so much easier to read and follow...
Re: C++ script ERROr can anyone help me [message #336665 is a reply to message #336519] Sun, 22 June 2008 04:16 Go to previous messageGo to next message
cpjok is currently offline  cpjok
Messages: 425
Registered: September 2007
Karma: 0
Commander
yes it is pritty mutch but i have a differant code that works already
Re: C++ script ERROr can anyone help me [message #336707 is a reply to message #336665] Sun, 22 June 2008 09:54 Go to previous message
HeavyX101- Left is currently offline  HeavyX101- Left
Messages: 633
Registered: April 2008
Location: WindowsJail=ZipFolder
Karma: 0
Colonel
CPJOK DIDNT I ALREADY FIX THAT FOR YOU? Angry

This account is no longer being active.
Previous Topic: Script request
Next Topic: A little help in skining
Goto Forum:
  


Current Time: Tue Jun 25 20:17:42 MST 2024

Total time taken to generate the page: 0.00771 seconds