Issue on .ini file removal. File does not remove.
#1

Dear SA:MP community,

When a player leaves during the registration process, for example when he presses "Quit" during the password selection, he will be kicked and the .ini file that was created should be removed.

However, the .ini file is not removed when the player leaves during the registration.

I've used the following code under every single dialog.(!response):
pawn Код:
if(fexist(UserPath(playerid)))
        {
            fremove(UserPath(playerid));
        }
Can anyone help me with this matter?
If you need more codes of my script, let me know.

Help is much appreciated.

Sincerely
Bible
Reply
#2

Are you deleting the file under the dialog response, but then re-creating it for the player when OnPlayerDisconnect gets called?
Reply
#3

Quote:
Originally Posted by EiresJason
Посмотреть сообщение
Are you deleting the file under the dialog response, but then re-creating it for the player when OnPlayerDisconnect gets called?
I may have done that. I now edited it and it works!
Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)