Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help needed for: loop
#1
Question 
hey guys

how can I creat a loop to force server to do jobs on a loop every 1 min!?

my server just crashes on every looped I have tried to use

Code:
if(;;),while(true)

I know that's for being infinite but I dont know how to fix this issue:(
for example I want to force server to put change dvar on every round starts (like fftype and killcam) but I see no event to use:(.

please help me.

PS:I hope "OnStart,OnPlayerdisconnect".in future.
edit:SRY for posting on wrong section,admin PLEASE move it to help section.
Reply

#2
Wut? are we talking about BO or MW3 here?
Reply

#3
If you are talking about plugins..

The server doesn't crash. But because you do an infinite loop the server will only do the loop and not continue other work. You either need to thread the loop or use a timer.

PS: Every round start = OnFastRestart
[Image: azuw.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Potential Infinite Loop DidUknowiPwn 5 4,122 10-27-2013, 22:22
Last Post: surtek
  [Tutorial] How-To, Mod menu picture-REVISED/no iwifix needed rotceh_dnih 52 32,278 09-28-2013, 02:08
Last Post: Monkey Arms
  IW5 .EXE and .DLL needed jotape99 7 6,900 06-13-2013, 11:27
Last Post: surtek
  Server console needed joey 1 2,491 06-12-2013, 21:19
Last Post: joey
  headphones <help needed> Arteq 11 6,371 06-08-2013, 16:44
Last Post: xfxtroll
  Help cOd IV help needed House 5 3,905 10-27-2012, 19:42
Last Post: House
  High Ping block still badly needed here choobie 6 4,277 10-01-2012, 12:22
Last Post: archit
  mw3 1.9.441 Ded.Serva - "...insufficient cpu performance" FIX needed itsmods.com76 7 5,585 09-07-2012, 01:26
Last Post: haider
  Bo modding help needed SamuelGrund 6 4,262 08-30-2012, 15:39
Last Post: SamuelGrund
  [Tutorial] No Update Needed pollarpart 20 10,903 06-22-2012, 07:16
Last Post: zxz0O0

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.