Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Timer with a chat class command?
Re: Timer with a chat class command? [message #377357 is a reply to message #377350] Wed, 25 March 2009 00:33 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
whtdrgnpl wrote on Wed, 25 March 2009 04:13

How do I use a timer with a chat class command? I've been trying to use this on one of them:
Commands->Start_Timer(obj,this,3.0f,1);

but I keep getting this error:
1>.\RTSplugin.cpp(2738) : error C2664: 'void (GameObject *,ScriptClass *,float,int)' : cannot convert parameter 2 from 'BuildCommand *const ' to 'ScriptClass *'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\RTSplugin.cpp(2738) : error C2664: 'void (GameObject *,ScriptClass *,float,int)' : cannot convert parameter 1 from 'int' to 'GameObject *'
1>        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast


Huh


You can't, the chat command class has nothing to do with ScriptImpClass
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Small Level Editor Tipp
Next Topic: Door Request Please!
Goto Forum:
  


Current Time: Sun Dec 22 19:03:37 MST 2024

Total time taken to generate the page: 0.00664 seconds