23.12.2014, 22:21
Try to add some debug-prints between each line, reload the server, try to delete an ATM as usual then open your serverlog.txt and see what gets printed and what not:
pawn Код:
if(dialogid == 52)
{
print("Dialog 52 called");
if(response)
{
print("Respones = 1");
new tmpid = IsPlayerAtATM(playerid);
printf("Current ATM ID: %d", tmpid);
if(tmpid!=-1)
{
print("ID is NOT -1)"
new path[32];
format(path,sizeof(path),"atm%d.txt",tmpid);
printf("Trying to delete file: %s", path");
dini_Remove(path);
print("File removed");