The account system you use is broken as fuck. No input verification on anything (i can use /openscriptmenu register_password mypasshere,0,54,0,1000,1000,1000,1000000 to instantly get an account on lvl 54 and 1M money registered)
Furthermore, stuff like this would most likely crash in developer mode:
Also, your code contains a mix of spaces and tabs, which makes me think it wasnt written by one and the same person to begin with.Code:if( f == -1 ) { closefile(f); return; }