User Tag List

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 27

Thread: it wont let me compile scripts.

  1. #11
    Gel
    Join Date
    Mar 2008
    Age
    30
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    701
    Level
    9
    vBActivity - Bars
    Lv. Percent
    34.19%

    Re: it wont let me compile scripts.

    import"std.zh"
    ffc script sign {
    void run(int m) {
    while(true) {
    while(Link->X < this->X - 8 || Link->X > this->X + 24 || Link->Y < this->Y || Link->Y > this->Y + 24 || Link->Dir != DIR_UP || !Link->InputA) {
    Waitframe();
    }
    Link->InputA = false;
    Screen->Message();

    while(Link->X >= this->X - 8 && Link->X <= this->X + 24 && Link->Y >= this->Y && Link->Y <= this->Y + 24 && Link->Dir == DIR_UP) {
    Waitframe();
    }

    Screen->Message(0);
    }
    }
    }

  2. #12
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,827
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,978
    Level
    33
    vBActivity - Bars
    Lv. Percent
    28.3%

    Re: it wont let me compile scripts.

    Quote Originally Posted by dingo131 View Post
    import"std.zh"
    ffc script sign {
    void run(int m) {
    while(true) {
    while(Link->X < this->X - 8 || Link->X > this->X + 24 || Link->Y < this->Y || Link->Y > this->Y + 24 || Link->Dir != DIR_UP || !Link->InputA) {
    Waitframe();
    }
    Link->InputA = false;
    Screen->Message(m);

    while(Link->X >= this->X - 8 && Link->X <= this->X + 24 && Link->Y >= this->Y && Link->Y <= this->Y + 24 && Link->Dir == DIR_UP) {
    Waitframe();
    }

    Screen->Message(0);
    }
    }
    }
    So it compiles now?
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  3. #13
    Gel
    Join Date
    Mar 2008
    Age
    30
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    701
    Level
    9
    vBActivity - Bars
    Lv. Percent
    34.19%

    Re: it wont let me compile scripts.

    no it doesn't

  4. #14
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,552
    Level
    16
    vBActivity - Bars
    Lv. Percent
    52.41%

    Re: it wont let me compile scripts.

    Quote Originally Posted by dingo131 View Post
    import"std.zh"
    ffc script sign {
    void run(int m) {
    while(true) {
    while(Link->X < this->X - 8 || Link->X > this->X + 24 || Link->Y < this->Y || Link->Y > this->Y + 24 || Link->Dir != DIR_UP || !Link->InputA) {
    Waitframe();
    }
    Link->InputA = false;
    Screen->Message();

    while(Link->X >= this->X - 8 && Link->X <= this->X + 24 && Link->Y >= this->Y && Link->Y <= this->Y + 24 && Link->Dir == DIR_UP) {
    Waitframe();
    }

    Screen->Message(0);
    }
    }
    }
    thats odd...

    it compiled just fine for me. i fail to understand this.

    try compiling THIS that you posted. copy and paste it to a new document and save it as signpost.z under the all files type.

    then try it. it works fine for me... if youre still having issues then im not sure what to do.
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  5. #15
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    33
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,322
    Level
    26
    vBActivity - Bars
    Lv. Percent
    11.54%

    Re: it wont let me compile scripts.

    Come on guys, he's got undeclared constants in that script.


    At the top of your script file, copy in this:
    Code:
    import "std.zh"
    It needs to be at the top of all script files to load in some number constants that the system uses.
    The script was referencing them, but it didn't know where they were.

    Make sure you keep all your scripts in the same file too, that's quite important.

    EDIT: Oops, you put it in there already.
    Missed that, sorry.

    Code:
    import "std.zh"
    
    ffc script signpost{
    	void run(int m){
    		while(true){
    			while(Link->X < this->X - 8 || Link->X > this->X + 24 || Link->Y < this->Y || Link->Y > this->Y + 24 || Link->Dir != DIR_UP || !Link->InputL || Link->Z != 0){
    				Waitframe();
    			}
    			Link->InputL = false;
    			Screen->Message(m);
    			while(Link->X >= this->X - 8 && Link->X <= this->X + 24 && Link->Y >= this->Y && Link->Y <= this->Y + 24 && Link->Dir == DIR_UP){
    				Waitframe();
    			}
    			Screen->Message(0);
    		}
    	}
    }
    Try that.

  6. #16
    Gel
    Join Date
    Mar 2008
    Age
    30
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    701
    Level
    9
    vBActivity - Bars
    Lv. Percent
    34.19%

    Re: it wont let me compile scripts.

    nope still nothing. in fact it won't compile any scripts.

  7. #17
    Gibdo bobrocks95's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    604
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,143
    Level
    15
    vBActivity - Bars
    Lv. Percent
    30.74%

    Re: it wont let me compile scripts.

    Is the error message still the same? What version are you using?

    Click here to level up my card!


    "Everybody's doing it... I just wanted to be popular."
    Bender- Futurama

  8. #18
    Gel
    Join Date
    Mar 2008
    Age
    30
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    701
    Level
    9
    vBActivity - Bars
    Lv. Percent
    34.19%

    Re: it wont let me compile scripts.

    the message for every script? im using either 2.5 or 2.11 idk

  9. #19
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,552
    Level
    16
    vBActivity - Bars
    Lv. Percent
    52.41%

    Re: it wont let me compile scripts.

    Quote Originally Posted by dingo131 View Post
    the message for every script? im using either 2.5 or 2.11 idk
    he means what build. im using 758...i think it is...?

    whatever the latest build you downloaded from shardstorm is.

    EDIT: also my scripts are in the same file but the "std.zh" is in a different one and they all work just fine for me.
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  10. #20
    Gel
    Join Date
    Mar 2008
    Age
    30
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    701
    Level
    9
    vBActivity - Bars
    Lv. Percent
    34.19%

    Re: it wont let me compile scripts.

    how do i find out what build it is?

    and what do you mean by the whole import std.zh thing?

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social