Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Having problems with C++
Having problems with C++ [message #335728] Tue, 17 June 2008 19:10 Go to previous message
HeavyX101- Left is currently offline  HeavyX101- Left
Messages: 633
Registered: April 2008
Location: WindowsJail=ZipFolder
Karma:
Colonel
I'm having problems with this code.
I want to make a command that arests a player and teleports it into a zone.
Zone id = 100054

Here is the code:
class jailChatCommand : public ChatCommandClass {
void Triggered(int ID,const TokenClass &Text,int ChatType) {
if (!Text[1].empty() ) {
int player = atoi(Text[1].c_str());
GameObject *obj = Get_GameObj(player);
	int x = ?????????("100054");
GameObject *gotoObject = Commands->Find_Object(x);
		 Vector3 gotoLocation = Commands->Get_Position(gotoObject);
 		Commands->Set_Position(obj,gotoLocation);
}
else {
Console_Input(StrFormat("ppage %d ERROR!",ID).c_str());
}
}
};
ChatCommandRegistrant<jailChatCommand> jailChatCommandReg("!jail",CHATTYPE_ALL,1,GAMEMODE_AOW);



I dont know what to put in the place where are the ???????.
Do any of you guys know what i could put there?
I got it from a script and it was Get_Int_Parameter but it is getting a error:
Quote:

1>.\gmmain.cpp(3116) : error C3861: 'Get_Int_Parameter': identifier not found


This account is no longer being active.
 
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: could anyone help me with this mod commands
Next Topic: [Release] split mine limit plug-in
Goto Forum:
  


Current Time: Fri Nov 22 10:30:33 MST 2024

Total time taken to generate the page: 0.01049 seconds