<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=CrossFunc</id>
		<title>CrossFunc - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=CrossFunc"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=CrossFunc&amp;action=history"/>
		<updated>2026-05-26T00:18:11Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=CrossFunc&amp;diff=82&amp;oldid=prev</id>
		<title>Freeman: Created page with &quot;===From the Scripting Manual===  ''function CrossFunc(const Params: array of variant; ProcName: string): variant;''    '''Parameter Info:'''   Params (Array of Variant): Param...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=CrossFunc&amp;diff=82&amp;oldid=prev"/>
				<updated>2012-08-15T09:08:21Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===From the Scripting Manual===  &amp;#039;&amp;#039;function CrossFunc(const Params: array of variant; ProcName: string): variant;&amp;#039;&amp;#039;    &amp;#039;&amp;#039;&amp;#039;Parameter Info:&amp;#039;&amp;#039;&amp;#039;   Params (Array of Variant): Param...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===From the Scripting Manual===&lt;br /&gt;
 ''function CrossFunc(const Params: array of variant; ProcName: string): variant;''&lt;br /&gt;
 &lt;br /&gt;
 '''Parameter Info:'''&lt;br /&gt;
  Params (Array of Variant): Parameters to be passed to the function, must be in [ square brackets ]&lt;br /&gt;
  ProcName (String): Script name + function name to be called. See below for example.&lt;br /&gt;
 &lt;br /&gt;
 '''Description:'''&lt;br /&gt;
  This function will call a procedure/function found within another script in your server /scripts/   folder. &lt;br /&gt;
  The ProcName parameter must contain the script name + function name formatted like this: (Note the dot between script name and the function) 'MyScriptName.OnCommand'&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
// This function will be to test CrossFunc&lt;br /&gt;
// For example: Make a copy of the 'default' folder, name it 'default2'&lt;br /&gt;
// And place this function somewhere in the 'default2' Core.pas file&lt;br /&gt;
&lt;br /&gt;
function FunkyDuck(StrangeString: String;ItchyInt: Integer;YourSingle: Single): string;&lt;br /&gt;
begin&lt;br /&gt;
  WriteLn('StrangeString: '+StrangeString);&lt;br /&gt;
  WriteLn('ItchyInt: '+IntToStr(ItchyInt));&lt;br /&gt;
  WriteLn('YourSingle: '+FloatToStr(YourSingle));&lt;br /&gt;
  result := 'FunkyDuck has a return string!';&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
// Now for this code, place it in any other script folder.&lt;br /&gt;
// Such as: 'default', in any of the .pas files&lt;br /&gt;
&lt;br /&gt;
var&lt;br /&gt;
  MyStr: String;&lt;br /&gt;
begin&lt;br /&gt;
  MyStr := CrossFunc(['my string',696969,1.234567],'default2.FunkyDuck'); // (Does not have to be assigned to a variable)&lt;br /&gt;
  WriteLn(MyStr); // This will print &amp;quot;FunkyDuck has a return string!&amp;quot; in the console&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
* [http://enesce.com/help/index.html?Functions/CrossFunc.html Scripting Manual page for CrossFunc]&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Scripting]][[Category:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Freeman</name></author>	</entry>

	</feed>