failed or succeeded?

often I get script failed after a successful run of the script. sometimes I get script failed. is there a way for me to purposely trigger the "script failed" "script succeeded" messages?
 

Nightmist

Member
Does your script end with a if check. I believe mafia will just print out the result of the last boolean check IF there is no "else". So:
Code:
print( "Script working.");
if( 1==2)
{
 print( "... Okay... *backs away slowly from computer*");
}
Would return failed (I hope). I guess in a sense it did "fail"... while it did "work", it still ended up failing the last boolean check (which doesn't have any commands after it) and so mafia says it failed.

If we had say a print after the if check then it would return successful. (Since the print worked, and thats the last thing the script does... as in the last thing the script done was successful.)
 
The last five commands in the script which always *supposedly* fails is:

Code:
cli_execute("raffle.php?action=buy&pwd&where=0&f=Buy+Tickets&quantity=1");
cli_execute("mirror success.txt");
print(my_name());
cli_execute("mirror");
print("Script Finished");
It's a really really old script.

I have others which sometimes fail. The "script failed" just bugs me.
 
Top