VAULTSCRIPT VAULTSPACE Timer (*VAULTAPI(CreateTimerEx))(VAULTSPACE RawFunction(), VAULTSPACE Interval, VAULTSPACE cRawString, ...) VAULTCPP(noexcept);
native CreateTimerEx(const func{}, interval, const def{}, {Fixed,Float,_}:...);
Result VAULTSCRIPT MyTimer(int a, int b, const char* c) { // Timer function return static_cast<Result>(0); } Void VAULTSCRIPT exec() noexcept { // C++ template version (type-safe, deduces type string) CreateTimerEx(MyTimer, static_cast<Interval>(5000), 1, 2, "www.vaultmp.com"); }
forward MyTimer(a, b, const c{}); public MyTimer(a, b, const c{}) { // Timer function return 0; } main() { CreateTimerEx("MyTimer", 5000, "iis", 1, 2, "www.vaultmp.com"); }
Created by Last edited by , 08-14-2012 at 08:52 PM 0 Comments, 2,566 Views |
, 10-04-2011 at 02:18 PM