Issue on .ini file removal. File does not remove. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Issue on .ini file removal. File does not remove. (
/showthread.php?tid=510336)
Issue on .ini file removal. File does not remove. -
AndySedeyn - 30.04.2014
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
Re: Issue on .ini file removal. File does not remove. -
EiresJason - 30.04.2014
Are you deleting the file under the dialog response, but then re-creating it for the player when OnPlayerDisconnect gets called?
Re: Issue on .ini file removal. File does not remove. -
AndySedeyn - 30.04.2014
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!