| Blockland Forums > Modification Help |
| Calling A Function In A Function |
| << < (3/5) > >> |
| jes00:
--- Quote from: mp7964 on October 10, 2011, 06:26:22 PM --- --- Code: ---$Mod::Time = 5000 //RTBPref RTB_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); } --- End code --- That should work for the RTB pref. --- End quote --- But why are you registering the pref twice? |
| Kalphiter:
mp7964, you have no clue what you're doing, just stop posting code. |
| jes00:
--- Quote from: Kalphiter on October 11, 2011, 08:01:09 AM ---mp7964, you have no clue what you're doing, just stop posting code. --- End quote --- Mind helpin a bit Kalph? |
| Fluff-is-back:
Incase you don't already know, RTB Prefs are used to edit global variables. You can find out how to use them correctly here. |
| jes00:
--- Code: ---function One(%client) } schedule($Pref::Mod::Time, 0, One, %client); } --- End code --- So would this be correct? |
| Navigation |
| Message Index |
| Next page |
| Previous page |