Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » editing scripts.dll
Re: editing scripts.dll [message #235440 is a reply to message #235432] Fri, 22 December 2006 12:15 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
use a boolean variable to check if its run or not.

static bool hasStarted = false;

if ( !hasStarted )
{
  .....
  hasStarted = true;
}



since it is static you don't need to bother making it global.


http://steamsignature.com/card/1/76561197975867233.png
 
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: Help with Exdeath's boned E3 models
Next Topic: single player crashes with the scripts.dll
Goto Forum:
  


Current Time: Thu Dec 12 04:37:17 MST 2024

Total time taken to generate the page: 0.00793 seconds