From 663c0fe37458fe2acecfcc69e285d50ba4baffc0 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Fri, 31 May 2024 23:07:44 +0800 Subject: [PATCH] [bot] Implement `n_GetTickCount(...)` --- bot/scrcustom.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/scrcustom.cpp b/bot/scrcustom.cpp index aab061c..046a72e 100644 --- a/bot/scrcustom.cpp +++ b/bot/scrcustom.cpp @@ -43,8 +43,9 @@ static cell AMX_NATIVE_CALL n_KillTimer(AMX *amx, cell *params) // native GetTickCount() static cell AMX_NATIVE_CALL n_GetTickCount(AMX *amx, cell *params) { - // TODO: n_GetTickCount - return 0; + CHECK_PARAMS(0); + + return (cell)GetTickCount(); } // native Float:asin(Float:value)