01-17-2014, 04:00 AM
But if it was static, how would it know what world to count ticks against?
Countdown
|
||||||||||
01-17-2014, 04:00 AM
But if it was static, how would it know what world to count ticks against?
01-17-2014, 04:07 AM
(This post was last modified: 01-17-2014, 04:08 AM by daniel0916.)
01-17-2014, 04:49 AM
The ScheduleTask has not yet been exported, I'm doing it now.
Thanks given by: daniel0916
01-17-2014, 11:35 PM
Error: Code: [14:33:13] LUA: Plugins/SurvivalGames/onplayerspawn.lua:34: Error in function call 'ScheduleTask': Expected a function for parameter #1 I use the newest MCServer Version.
01-17-2014, 11:59 PM
You need to first define the function, and only then use it.
Since you're probably trying to make a closure, too, post a more complete code snippet.
01-18-2014, 12:07 AM
Well, what a mess...
Note that this was written off memory, so it may contain errors. Thanks given by: daniel0916
01-18-2014, 02:40 AM
(This post was last modified: 01-18-2014, 07:50 AM by daniel0916.)
Thanks, this code looks very better
![]() Edit: I think i found the mistake. You writed AnnouncedSecods and not AnnouncedSeconds.. Edit2: Okay, now it comes no error but the schedule isn't starting.. i will see if i can fix it. Edit3: What is here false? I will try something with mcserver code. Code: a_Player->SendMessage(a_Item.m_ItemType);
01-18-2014, 08:10 AM
The SendMessage function expects a string as its parameter, and you are giving it a number.
01-18-2014, 07:28 PM
(This post was last modified: 01-18-2014, 08:00 PM by daniel0916.)
| ||||||||||
« Next Oldest | Next Newest »
|