Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( cmd == "compile" )
- {
- if ( text )
- {
- local file = loadfile( "scripts/" + text + ".nut" );
- if ( file )
- {
- print( "Script " + text + " compiled successfully" );
- writeclosuretofile( "scrips/" + text + ".cnut", file );
- }
- else print( "Unable to load script " + text );
- }
- else print( "Error - Invalid arguments (compile <script>)" );
- }
Advertisement
Add Comment
Please, Sign In to add comment