Author Topic: Making functions execute? (Whats the line for that) (Resolved)  (Read 1093 times)

Hey guys, I just wanted to know what the line of code is to make functions execute.
What is it? All help is appreciated.
« Last Edit: October 10, 2012, 09:30:09 PM by setro2 »

exec("filepath");

A correct filepath would be

exec("Add-Ons/Server_Test/server.cs");

Depending on the situation you may want to also use

setModPaths(GetModPaths());
discoverFile("filepath");
transmitDatablocks();


EDIT;

Read it wrong.
but then again your wording is tricky.
function callThisstuff(%client)
would be
callthisstuff(%client);

DOUBLEEDIT;

you can also do
schedule(time,0,functionname,arg1,arg2,etc);
To delay a function by the time inserted.
« Last Edit: October 10, 2012, 09:25:21 PM by ¥ola »

exec("filepath");

A correct filepath would be

exec("Add-Ons/Server_Test/server.cs");

Depending on the situation you may want to also use

setModPaths(GetModPaths());
discoverFile("filepath");
transmitDatablocks();
No, I mean for specific functions, not a whole script.

No, I mean for specific functions, not a whole script.
Sorry.
Read my edit.

Sorry.
Read my edit.
Ah, thanks. I just wanted to make sure so I don't make a really dumb mistake. Thanks again!

To clarify, you can either do functionName(%args, %args, %args); or call("functionName", %args, %args, %args); or if you want some kind of delay schedule(delayInMS, 0, "functionName", %args, %args, %args);