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
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#4
RE: Need help with my script

(05-26-2013, 12:58 AM)TheGreatCthulhu Wrote: 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();


Thanks! Now it works, you deserved a reputation Smile
05-26-2013, 04:53 PM
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: 1 Guest(s)