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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script File crashing
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: Script File crashing

void OnStart()
{
PlayMusic("amb_guardian.ogg", true, 1.0f, 0, 0, true);
}
{

AddUseItemCallback("", "bone_saw_2", "wooden_boards_block_1", "SawGruntAlert", true);
}

So, bold characters are completely needless. {'s are to open and close function blocks. Like in:
void TimerFunc2(string &in asTimer)
{
StopSound("23_saw2.snt", 0f);
}

See, void TimerFunc2(string &in asTimer) is the header, and { & } is to open and close the function block.

05-28-2011, 02:44 AM
Website Find


Messages In This Thread
Script File crashing - by willochill - 05-28-2011, 02:28 AM
RE: Script File crashing - by Tanshaydar - 05-28-2011, 02:44 AM
RE: Script File crashing - by willochill - 05-28-2011, 03:31 AM
RE: Script File crashing - by Tanshaydar - 05-28-2011, 11:10 AM
RE: Script File crashing - by willochill - 05-28-2011, 03:58 PM
RE: Script File crashing - by Tanshaydar - 05-28-2011, 03:58 PM
RE: Script File crashing - by willochill - 05-28-2011, 04:00 PM
RE: Script File crashing - by Kyle - 05-28-2011, 04:07 PM
RE: Script File crashing - by Kyle - 05-28-2011, 04:04 PM
RE: Script File crashing - by willochill - 05-28-2011, 04:12 PM



Users browsing this thread: 1 Guest(s)