Raised This Month: $ Target: $400
 0% 

Rotate server_cmd()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
chungsy
Member
Join Date: Nov 2011
Old 01-27-2013 , 13:16   Re: Rotate server_cmd()
Reply With Quote #15

Quote:
Originally Posted by chungsy View Post
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.

Last edited by chungsy; 01-27-2013 at 13:19.
chungsy is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode