Forum

> > CS2D > Scripts > Delete command
Forums overviewCS2D overview Scripts overviewLog in to reply

English Delete command

5 replies
To the start Previous 1 Next To the start

old Delete command

BestMan
User Off Offline

Quote
Can i create a command for delete file?

It's my command but are bad. I am very bad scripter!

Spoiler >

old Re: Delete command

BestMan
User Off Offline

Quote
LUA ERROR: sys/lua/1/owner.lua:50: malformed number near '.4.lua'

Script:
          
1
2
3
4
elseif command =='removehouse' then
			os.remove(sys/lua/1/saves/rpg_TheBestManTibia0.4.lua)
                        msg('All houses reseted')
			return 1

old Re: Delete command

sheeL
User Off Offline

Quote
1
2
3
4
elseif command == 'removehouse' then
	os.remove("sys/lua/1/saves/rpg_TheBestManTibia0.4.lua");
	msg('All houses reseted');
return 1

old Re: Delete command

TimeQuesT
User Off Offline

Quote
@user Avo: Nope.
I'm using it too. It makes it more readable for me.
There're also other reasons.

Click Me

Additional: When I do not use them, I forget to use them in other languages where they are required.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview