Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » [Request]Script
Re: [Request]Script [message #399067 is a reply to message #399061] Sat, 22 August 2009 21:32 Go to previous messageGo to previous message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma:
Colonel
Ethenal wrote on Sat, 22 August 2009 22:58

Yes, you are correct in assessing that your problem is the while loop; since while(1) will always be true, and since the RenegadeFDS is not multithreaded, your program will essentially stay in that loop and any code executed by it indefinitely until 1 is no longer equal to 1, which will obviously never happen.

As raven said, learn to write non blocking code or shove this code in a thread so it won't halt the FDS. I've heard plenty of people say creating threads in the FDS is not a good idea, though.


ExodusScripts is multithreaded Razz


-Jelly Administrator
-Exodus Administrator
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SCUD Storm building destructions
Next Topic: WIP movie of new plugin
Goto Forum:
  


Current Time: Sun Dec 22 02:36:29 MST 2024

Total time taken to generate the page: 0.00809 seconds