Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » !spec script release  () 5 Votes
Re: !spec script release [message #330699 is a reply to message #330683] Thu, 15 May 2008 19:02 Go to previous messageGo to next message
HeavyX101- Left is currently offline  HeavyX101- Left
Messages: 633
Registered: April 2008
Location: WindowsJail=ZipFolder
Karma: 0
Colonel
Hey guys, ive downloaded c++ and now i got errors when i was trying to make this code work.
Here is the error:
HERE


This account is no longer being active.
Re: !spec script release [message #330736 is a reply to message #329028] Fri, 16 May 2008 07:07 Go to previous messageGo to next message
renalpha is currently offline  renalpha
Messages: 1000
Registered: January 2007
Location: Holland - Zuid-Holland - ...
Karma: 0
General (1 Star)
lol

wich version are u using?


Aircraftkiller wrote on Fri, 18 February 2011 23:50

I figured some people will still go LOLOLOL STARVING CATS LOOOOLZ UR A FAG or some dumb shit like that. Thanks for not disappointing! Smile

Re: !spec script release [message #330737 is a reply to message #329028] Fri, 16 May 2008 07:11 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
lol

Bückstabü!
Re: !spec script release [message #330751 is a reply to message #329028] Fri, 16 May 2008 09:16 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
add on "Linker" Except.lib
Re: !spec script release [message #330771 is a reply to message #330751] Fri, 16 May 2008 12:03 Go to previous messageGo to next message
HeavyX101- Left is currently offline  HeavyX101- Left
Messages: 633
Registered: April 2008
Location: WindowsJail=ZipFolder
Karma: 0
Colonel
Just forget this, C++ is really fucked up. Sneaky

This account is no longer being active.
Re: !spec script release [message #334799 is a reply to message #330771] Wed, 11 June 2008 21:49 Go to previous messageGo to next message
HeavyX101- Left is currently offline  HeavyX101- Left
Messages: 633
Registered: April 2008
Location: WindowsJail=ZipFolder
Karma: 0
Colonel
Guys, sorry that i'm posting on this old thread, but i need help.
This is what i did.

spect.h
class Player_Spectate : public ScriptImpClass {
public:
void Created(GameObject *obj);
};



spect.cpp
#include "scripts.h"
#include "engine.h"
#include "spect.h"

void Player_Spectate::Created(GameObject *obj) {
Commands->Set_Is_Visible(obj,false);
Commands->Set_Model(obj,"null");
Commands->Set_Shield_Type(obj,"Blamo");
Commands->Clear_Weapons(obj);
Toggle_Fly_Mode(obj);
Commands->Disable_All_Collisions(obj);
}
ScriptRegistrant<Player_Spectate> Player_Spectate_Registrant("Player_Spectate","");




added on gmmain.cpp
class spectateChatCommand : public ChatCommandClass {
void Triggered(int ID,const TokenClass &Text,int ChatType) {
GameObject *obj = Get_GameObj(ID);
if (Is_Script_Attached(obj,"Player_Spectate")) {
Commands->Destroy_Object(obj);
}
else {
Commands->Attach_Script(obj,"Player_Spectate","");
}
}
}
};
ChatCommandRegistrant<spectateChatCommand> spectateChatCommandReg("!spec",CHATTYPE_ALL,0,GAMEMODE_AOW);


I modified the code so there could not be the permission thing.
The problem is that i get alot of errors that i dont understand.
Here are the errors:
Quote:

.\gmmain.cpp(1345) : error C2143: syntax error : missing ';' before '}'
.\gmmain.cpp(1335) : error C2059: syntax error : '}'
.\gmmain.cpp(1335) : error C2143: syntax error : missing ';' before '}'
.\gmmain.cpp(1335) : error C2059: syntax error : '}'
.\gmmain.cpp(1337) : error C2059: syntax error : 'if'
.\gmmain.cpp(1337) : error C2143: syntax error : missing ';' before '{'
.\gmmain.cpp(1337) : error C2447: '{' : missing function header (old-style formal list?)
.\gmmain.cpp(1340) : error C2059: syntax error : 'else'
.\gmmain.cpp(1340) : error C2143: syntax error : missing ';' before '{'
.\gmmain.cpp(1340) : error C2447: '{' : missing function header (old-style formal list?)
.\gmmain.cpp(1343) : error C2059: syntax error : '}'
.\gmmain.cpp(1343) : error C2143: syntax error : missing ';' before '}'
.\gmmain.cpp(1343) : error C2059: syntax error : '}'

Can anybody help?


This account is no longer being active.

[Updated on: Wed, 11 June 2008 21:49]

Report message to a moderator

Re: !spec script release [message #334808 is a reply to message #329028] Wed, 11 June 2008 23:12 Go to previous messageGo to next message
renalpha is currently offline  renalpha
Messages: 1000
Registered: January 2007
Location: Holland - Zuid-Holland - ...
Karma: 0
General (1 Star)
ur missing a lot of brackets.

it means you didnt closed a few ifs and voids brackets lol


Aircraftkiller wrote on Fri, 18 February 2011 23:50

I figured some people will still go LOLOLOL STARVING CATS LOOOOLZ UR A FAG or some dumb shit like that. Thanks for not disappointing! Smile

Re: !spec script release [message #334937 is a reply to message #334808] Thu, 12 June 2008 13:18 Go to previous message
HeavyX101- Left is currently offline  HeavyX101- Left
Messages: 633
Registered: April 2008
Location: WindowsJail=ZipFolder
Karma: 0
Colonel
renalpha wrote on Thu, 12 June 2008 02:12

ur missing a lot of brackets.

it means you didnt closed a few ifs and voids brackets lol

Well, do you mean i have an extra bracket?
It compiled now.
And the command works now.
Thanks.


This account is no longer being active.
Previous Topic: C++. Need help.
Next Topic: Scripts
Goto Forum:
  


Current Time: Fri May 31 12:53:34 MST 2024

Total time taken to generate the page: 0.00768 seconds