i import the script and it acts like its gonna but then it says "there were compile errors. compilation halted." help plz!
i import the script and it acts like its gonna but then it says "there were compile errors. compilation halted." help plz!
that means somethings wrong with the script.
did you write it? if not what script is it? maybe ill find whats wrong and fix it so it can work.
also, is it a ZScript type of script or ZASM?
it makes a difference in compiling.
the compiler usually tells you whats wrong with it, so i use that as a correction tool. what does it say when you try to compile it? is that the only message you get?
...also i think this goes in script general discussion/help...
someone should make a sticky about this. if the mods let me post it here (so n00bs can find it easier and stop making threads like this lol) ill volunteer for it.
... 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)
i didn't write it. its a script for letting link be able to read a sign post.
ok... do you know the difference between ZScript and ZASM?
ZASM is written in all caps.
ZScript isnt.
have you looked at it? after you do tell me which one it is and ill tell you where to go from there.
... 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)
its zscript
ok heres how to set this script up then.
save the file with an extension of .z
example,
right:wrong:Code:signpost.zanything with .txt or anything like that will be wrong.Code:signpost.z.txt
so next,
go to the editor and follow this CAREFULLY!! this means dont talk to strangers and NO bathroom breaks
Tools>Scripts>Compile Zscript
now click "import" and select your file.
then click "compile"
if the script is ok and has no errors, you will see a message (i dont know exactly what it says though)
after the message a box will pop up. here you add your script to the list.
there are 3 tabs at the top. FFC Global and Item. under one of those 3 is your signpost script. i think a signpost would be in the FFC tab
find it, highlight it and click the "<<" button
there you go!
now using the script might be a little harder to explain.
EDIT:lol i like being helpful XD
... 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)
Come on guys, he's got undeclared constants in that script.
At the top of your script file, copy in this:
It needs to be at the top of all script files to load in some number constants that the system uses.Code:import "std.zh"
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.
Try that.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); } } }
nope still nothing. in fact it won't compile any 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
the message for every script? im using either 2.5 or 2.11 idk
There are currently 1 users browsing this thread. (0 members and 1 guests)