Quote:
Originally Posted by chungsy
How do I keep rotating a server_cmd() for a certain amount for time?
I tried to do the following but failed the map changes when I tried to make it repeat :
public START(id, level, cid)
{
server_cmd("exec ^"%s^"", COMMANDHERE);
set_task(30,"REPEAT");
}
public REPEAT(id, level, cid)
{
server_cmd("exec ^"%s^"", COMMANDTWOHERE);
set_task(30, "START"); <-- The map will change here, how to slove it?
}
|
Is that a
problem? cuz the map changes when it not suppose to.
I mean anything I tried to rotate wont work. Its just easier for testing (compare with some changes). Just to compile again and again will waste lot of time.