Countdown - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: Countdown (/thread-1314.html) |
RE: Countdown - daniel0916 - 01-17-2014 (01-17-2014, 02:32 AM)STR_Warrior Wrote: But then.. What's the difference? I don't know. But the schedule is sometimes stopping. Give it a documentation about the new Schedule? RE: Countdown - worktycho - 01-17-2014 What advantage do these functions have over the new ScheduleTask function? It seems were duplicating effort. RE: Countdown - daniel0916 - 01-17-2014 (01-17-2014, 02:37 AM)worktycho Wrote: What advantage do these functions have over the new ScheduleTask function? It seems were duplicating effort. Yes, but how can i use it? RE: Countdown - NiLSPACE - 01-17-2014 (01-17-2014, 02:36 AM)daniel0916 Wrote: I don't know. But the schedule is sometimes stopping. Give it a documentation about the new Schedule? When are you using AddLobbySchedule and when are you using AddStartSchedule? RE: Countdown - daniel0916 - 01-17-2014 (01-17-2014, 02:42 AM)STR_Warrior Wrote:(01-17-2014, 02:36 AM)daniel0916 Wrote: I don't know. But the schedule is sometimes stopping. Give it a documentation about the new Schedule? When the LobbySchedule is at 0 i start the StartSchedule. RE: Countdown - worktycho - 01-17-2014 I need to document it but cant figure out where. It takes a function and a number of ticks and calls the function after that many ticks. For example: Code: world.ScheduleTask(Callback, 10) RE: Countdown - NiLSPACE - 01-17-2014 You can document it in the APIDump plugin at the cWorld section. RE: Countdown - daniel0916 - 01-17-2014 cRoot:Get():GetWorld("world"):ScheduleTask(LobbyCountDown, (COUNT_TO - I) * 20);Don't work. What have i done false? Error: Code: [18:44:31] LUA: Plugins/SurvivalGames/onplayerspawn.lua:34: attempt to call method 'ScheduleTask' (a nil value) RE: Countdown - bearbin - 01-17-2014 Maybe it's not exported? Or the name is wrong. RE: Countdown - NiLSPACE - 01-17-2014 Maybe it's static? then you have to use: cWorld:ScheduleTask |