Countdown
#91
(01-17-2014, 02:32 AM)STR_Warrior Wrote: But then.. What's the difference? Wink

I don't know. But the schedule is sometimes stopping. Give it a documentation about the new Schedule?
Reply
Thanks given by:
#92
What advantage do these functions have over the new ScheduleTask function? It seems were duplicating effort.
Reply
Thanks given by:
#93
(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?
Reply
Thanks given by:
#94
(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?
Reply
Thanks given by:
#95
(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 are you using AddLobbySchedule and when are you using AddStartSchedule?

When the LobbySchedule is at 0 i start the StartSchedule.
Reply
Thanks given by:
#96
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)
Would call Callback after 10 ticks in world world.
Reply
Thanks given by:
#97
You can document it in the APIDump plugin at the cWorld section.
Reply
Thanks given by:
#98
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)
[18:44:31] Stack trace:
[18:44:31]   [C](-1): ScheduleTask
[18:44:31]   Plugins/SurvivalGames/onplayerspawn.lua(34): (no name)
[18:44:31] Stack trace end
[18:44:31] Error in plugin SurvivalGames calling function <callback>()
Reply
Thanks given by:
#99
Maybe it's not exported? Or the name is wrong.
Reply
Thanks given by:
Maybe it's static? then you have to use: cWorld:ScheduleTask
Reply
Thanks given by:




Users browsing this thread: 37 Guest(s)