Deleting files from scriptfiles
#1

I'm making a house system which saves in scriptfiles/houses.

I've made a createhouse command, but now I want to make a deletehouse command, but how do I delete the file from scriptfiles/houses?

Example: /deletehouse 14

It should delete scriptfiles/houses/14
Reply
#2

Define in strtok or sscanf id house you wish to delete, define destroy of label and pickup simple as that...

And then
define string,
format(string, sizeof(string), YourHouses, houseid);
fremove(string);
Reply
#3

I'm still confused, how would that delete the file which holds all the info?
Reply
#4

fremove will actualy remove the file of house id with all the data
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)