Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Need help with my script
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#3
RE: Need help with my script

To make it a global variable (visible to every function) move it out of the OnStart() function. For example, like this:
PHP Code: (Select All)
int icounter 1;

void OnStart()
{
}

void counter(string &in asStickyAreastring &in asBodyName)
{
    if (
icounter 2) ++icounter
    else 
GiveSanityBoostSmall();

05-26-2013, 12:58 AM
Find


Messages In This Thread
Need help with my script - by ooadrianoo - 05-25-2013, 10:41 PM
RE: Need help with my script - by Bridge - 05-26-2013, 12:40 AM
RE: Need help with my script - by TheGreatCthulhu - 05-26-2013, 12:58 AM
RE: Need help with my script - by ooadrianoo - 05-26-2013, 04:53 PM
RE: Need help with my script - by Bridge - 05-26-2013, 06:30 PM



Users browsing this thread: 2 Guest(s)