28.12.2011, 15:48
Does the plugin support subfolders?
I want to create a directory within a directory, but when I perform the code the server shuts down because it can't create a file within the directory because the directory doesn't exists, and hasn't been created.
So, would this peace of code work?
I want to create a directory within a directory, but when I perform the code the server shuts down because it can't create a file within the directory because the directory doesn't exists, and hasn't been created.
So, would this peace of code work?
pawn Код:
public createFolder(string[])
{
new dir[];
format(dir, sizeof(dir), "folders/custom/%s",string);
if(!dir_exists(dir))
{
dir_create(dir);
}
return 1;
}