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
Help! Script error!!
xxR3LoaD3dxx Offline
Junior Member

Posts: 5
Threads: 3
Joined: Mar 2012
Reputation: 0
#4
RE: Help! Script error!!

Thanks Big Grin Im horrible when it comes to those stupid brackets lol
(03-10-2012, 10:09 PM)UnseenLegend ( NL ) Wrote:
PHP Code: (Select All)
void ChaseSequence(string &in asTimer)
{
AddLocalVarInt("iIntroPart"1);
float partSpeed 1.5f;
switch (
GetLocalVarInt("iIntroPart"))
{ <-- 
you placed it the wrong way ''}''
PHP Code: (Select All)
if (GetLocalVarInt("iIntroPart") <3)
{
AddTimer("tmrChase"partSpeed"ChaseSequence");
}
}<-- 

When you add script functions, without using it. The error wont show what the problem is. sometime...


Thanks Big Grin I would have never spotted that lol
(03-10-2012, 11:07 PM)Apjjm Wrote: Actually, the problem is that you are missing an "l" in AddEntityCollideCallback:
//////////////
void OnStart()
{
AddEntityCollideCallback("Player", "ChaseStart", "ChaseStartFunc", true, 1);
}

Your bracketing on the switch statement is fine.


Nothings scarier then a screaming naked man flying down a hallway at 200mph.....wait...what?
(This post was last modified: 03-10-2012, 11:54 PM by xxR3LoaD3dxx.)
03-10-2012, 11:52 PM
Find


Messages In This Thread
Help! Script error!! - by xxR3LoaD3dxx - 03-10-2012, 07:39 PM
RE: Help! Script error!! - by UnseenLegend ( NL ) - 03-10-2012, 10:09 PM
RE: Help! Script error!! - by xxR3LoaD3dxx - 03-10-2012, 11:52 PM
RE: Help! Script error!! - by Apjjm - 03-10-2012, 11:07 PM
RE: Help! Script error!! - by UnseenLegend ( NL ) - 03-11-2012, 02:06 PM
RE: Help! Script error!! - by Apjjm - 03-11-2012, 03:10 PM



Users browsing this thread: 1 Guest(s)