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
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Why won't this script work?

What error comes up.

02-09-2012, 03:52 PM
Find
Shadowfied Offline
Senior Member

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

(02-09-2012, 03:52 PM)flamez3 Wrote: What error comes up.
They're mostly random stuff and mostly about other scripts which aren't actually wrong cause they work perfectly fine when I remove this script.

Right now it's just "Unexpected end of file", which it actually isn't, cause again, as soon as I remove it, the map works fine.

Current - Castle Darkuan
Other - F*cked Map
02-09-2012, 03:53 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#4
RE: Why won't this script work?

I reckon I needa see the whole script before I can tell you what's wrong.

02-09-2012, 03:55 PM
Find
Shadowfied Offline
Senior Member

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

Here's another error.

[Image: p7Keal.jpg]

Also, what does it mean "conversion from double to float"?

Current - Castle Darkuan
Other - F*cked Map
(This post was last modified: 02-09-2012, 03:56 PM by Shadowfied.)
02-09-2012, 03:55 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: Why won't this script work?

The bottom one works because the curly brackets legally follow the syntax.

(02-09-2012, 03:55 PM)Shadowfied Wrote: Here's another error.

Also, what does it mean "conversion from double to float"?

Sounds like you forgot to close something (e.g. a string).

It means you didn't put an f at the end of the number. (Note, script warnings do not crash the game.)

Tutorials: From Noob to Pro
(This post was last modified: 02-09-2012, 04:10 PM by Your Computer.)
02-09-2012, 04:10 PM
Website Find




Users browsing this thread: 1 Guest(s)