Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » old tokenclass
old tokenclass [message #456811] Tue, 04 October 2011 13:56 Go to previous message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma:
Recruit
I got sick of searching so ill just ask what happened to tokenclass and if it hasnt been replaced with something else, any ideas how to solve this
its about adding multiple scripts with or without parameters to an object.

				if (stricmp(Scripts,"")!=0 && stricmp(ScriptParams,"")!=0)
				{
					TokenClass ScriptsParse= TokenClass(Scripts,0);
					TokenClass ScriptParamsParse= TokenClass(ScriptParams,0);
					for(int i=0;i<ScriptsParse.size()+1;i++)
					{
						if (stricmp(ScriptParamsParse[i].c_str(),"!")!=0)
						{
							Attach_Script_Once(obj,ScriptsParse[i].c_str(),ScriptParamsParse[i].c_str());
						}
						else
						{
							Attach_Script_Once(obj,ScriptsParse[i].c_str(),"");
						}
					}
				}


Owner of kambot TT server

kambot.freeforums.org
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: JFW Script list?
Next Topic: Find_My_Vehicle
Goto Forum:
  


Current Time: Sun Dec 01 13:32:56 MST 2024

Total time taken to generate the page: 0.00734 seconds