Blockland Forums > Modification Help
$success
MegaScientifical:
This was in Slick's eval thing he gave Emo Freak. I tried to add abuse protection, but failed.
Yes, it tries to set success. If it's not set to 1, then the eval didn't go through, so it warns that.
HEY CHRONO! Want to take a run over my code and help me figure out where I went wrong making eval protection? :S
Triple Nickels:
--- Quote from: MegaScientifical on July 19, 2010, 09:32:41 AM ---This was in Slick's eval thing he gave Emo Freak. I tried to add abuse protection, but failed.
Yes, it tries to set success. If it's not set to 1, then the eval didn't go through, so it warns that.
HEY CHRONO! Want to take a run over my code and help me figure out where I went wrong making eval protection? :S
--- End quote ---
hey; gtfo.
edit for info: it appends (adds to the end of your eval) a variable that checks for success. The way code works is it executes each line one at a time, that's why you can do things like %variable = 1; if(%variable==1) and other things. If it encounters an error, it stops executing and will never get to the %success=1; part, so then when it checks later it will notice that something went wrong.
otto-san:
So, something like this:
-snip-
I'm guessing that Kalphiter's response to that means it should work.
Kalphiter:
Way to post it you moron.
But then again, morons don't know what to do with it.
otto-san:
--- Quote from: Kalphiter on July 21, 2010, 02:38:46 PM ---Way to post it you moron.
But then again, morons don't know what to do with it.
--- End quote ---
way to call me a moron to post a script i had put together