What are you make script?
function hi(){ bye();}function bye(){ echo("bye");}
Code: [Select]function hi(){ bye();}function bye(){ echo("bye");}Is that what you mean?
function One(%client){ Two(%client); //Do stuff}function Two(%client){ Delay somehow One(%client);}
function One(%client){ schedule(1000,0,"Two",%client); //Do stuff}function Two(%client){ //delayed 1000 milliseconds One(%client);}
function One(%client){ schedule(1000, 0, One, %client);}
If you're only going to call the function you just came from then make it call itself:Code: [Select]function One(%client){ schedule(1000, 0, One, %client);}
You can do that?EDIT: Oh and is there a way to make the delay a variable for an RTB pref?
$Mod::Time = 5000//RTBPrefRTB_registerPref("Pref Name","Category","$Mod::Time","int 10000 50000", "Name","5000",0,0,);if(isFile("Add-Ons/System_ReturnToBlockland/server.cs")){if(!$RTB::RTBR_ServerControl_Hook)exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");RTB_registerPref("Duplicator Timeout","Duplicator","Duplicator::Timeout","int 0 60","Tool_Duplicator",40,0,0);}else{$Mod::Time = 15000;function One(%client)} schedule($Mod::Time, 0, One, %client);}
Code: [Select]$Mod::Time = 5000//RTBPrefRTB_registerPref("Pref Name","Category","$Mod::Time","int 10000 50000", "Name","5000",0,0,);if(isFile("Add-Ons/System_ReturnToBlockland/server.cs")){if(!$RTB::RTBR_ServerControl_Hook)exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");RTB_registerPref("Duplicator Timeout","Duplicator","Duplicator::Timeout","int 0 60","Tool_Duplicator",40,0,0);}else{$Mod::Time = 15000;function One(%client)} schedule($Mod::Time, 0, One, %client);}That should work for the RTB pref.
mp7964, you have no clue what you're doing, just stop posting code.
function One(%client)} schedule($Pref::Mod::Time, 0, One, %client);}