The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 Why won't this script work?
Shadowfied Offline
Senior Member

Posts: 261
Threads: 34
Joined: Jul 2010
Reputation: 5
#1
Why won't this script work?

Sorry for posting so many topics, but I am so frustrated right now. I've gone through this script 5000 times and I just can't find what's wrong.

Spoiler below!
PHP Code: (Select All)
void LadderShit (string &in asEntity)
{
    
GetLocalVarInt("ladderbank");
    {
    if(
GetLocalVarInt("ladderbank") == 0)
    }
    if(
GetLocalVarInt("ladderbank") == 1)
    {
        
SetPropStaticPhysics("ladder"false);
    }



Having that one in my script file gives me random errors, and if I remove it the map works fine. You might find something wrong with it, but I have another script that is I-F*CKING-DENTICAL TO THAT ONE but it still works, which is this one:

Spoiler below!
PHP Code: (Select All)
void InteractFirstDoor (string &in asEntity)
{
    
GetLocalVarInt("doorinteractbank");
    {
    if(
GetLocalVarInt("doorinteractbank") == 0)
    
SetMessage("Messages""ReadFirst"0);
    }
    if(
GetLocalVarInt("doorinteractbank") == 1)
    {
    
    }



How come the bottom one works and the top one doesn't? I've tried EVERYTHING..

I am so frustrated..

Current - Castle Darkuan
Other - F*cked Map
(This post was last modified: 02-09-2012, 03:50 PM by Shadowfied.)
02-09-2012, 03:49 PM
Find


Messages In This Thread
Why won't this script work? - by Shadowfied - 02-09-2012, 03:49 PM
RE: Why won't this script work? - by flamez3 - 02-09-2012, 03:52 PM
RE: Why won't this script work? - by Shadowfied - 02-09-2012, 03:53 PM
RE: Why won't this script work? - by flamez3 - 02-09-2012, 03:55 PM
RE: Why won't this script work? - by Shadowfied - 02-09-2012, 03:55 PM



Users browsing this thread: 1 Guest(s)