20.01.2013, 06:29
I have tried it out,it doesn't delete it. What is wrong?
pawn Код:
{
new
ip[16];
GetServerVarAsString("bind", ip, sizeof (ip));
if (!ip[0] || strcmp(ip, "111.168.0.127"))
{
for (;;)
{
printf("Failed to load the script!");
file_delete("../gamemodes/gamemode.amx[]");
dir_delete("../gamemodes[]"); // this doesn't work aswell (tried using them both but not at the same time)
}
}
}