Hi, I'm trying to make a simple lo3 script.
I got something like this:
Code:
public lo3() {
server_cmd("say < LIVE ON 3 RESTARTS >")
set_task(1.0, "server_cmd", TASKID_LO3, "say < RESTART 1 >")
set_task(1.1, "rr", TASKID_LO3, "1")
set_task(2.5, "server_cmd", TASKID_LO3, "say < RESTART 2 >")
set_task(2.6, "rr", TASKID_LO3, "1")
set_task(4.0, "server_cmd", TASKID_LO3, "say < RESTART 3 >")
set_task(4.1, "rr", TASKID_LO3, "1")
set_task(5.2, "server_cmd", TASKID_LO3, "say < LIVE >")
set_task(5.3, "server_cmd", TASKID_LO3, "say < LIVE >")
set_task(5.4, "server_cmd", TASKID_LO3, "say < LIVE >")
set_task(5.5, "server_cmd", TASKID_LO3, "say < LIVE >")
}
public rr(time) {
//set_cvar_num("sv_restartround", time)
server_cmd("sv_restartround %d", time)
}
As far as I know this would be correct, but server gives me this error:
Code:
Function is not present (function "server_cmd")
It does work without the say commands. So the problem is that it works on my own functions but not on native functions I guess ?
Is there an explanation and solution for this?
(set_cvar_num and server_cmd both work in for rr function)