Deleting y_ini files
#1

Hello everyone.
I was testing a register/login system and all was working fine untill i have noticed that when someone leaves the register dialog ,it kicks out yourself and it is counted as the account was created.I mean the ini file create the account when it must not.

pawn Код:
if(!response) return Kick(playerid);
So there is the line when the player press "ESC" or "Quit" it kicks out the player but it also create the ini file.

pawn Код:
[Player's Data]
AdminLevel = 0
VIPLevel = 0
Money = 0
Scores = 0
Kills = 0
Deaths = 0
There is the ini file made when someone press Quit.This must not be happening ; this file must not be made.

I was thinking on adding the fclose function on it - something like this

pawn Код:
if(!response)      
{
        Kick(playerid);
    new INI:file = INI_Open(Path(playerid));
    INI_Close(file);
    fremove(file);
}
Kicking the player then open the file and remove/close it.Of course that code won't work ,it was just an example but i need ideas..... thanks a lot!
Reply


Messages In This Thread
[Solved]Deleting y_ini files - by UploaD - 07.11.2015, 03:08
Re: Deleting y_ini files - by Gammix - 07.11.2015, 03:36
Re: Deleting y_ini files - by UploaD - 07.11.2015, 04:41
Re: Deleting y_ini files - by PrO.GameR - 07.11.2015, 09:11

Forum Jump:


Users browsing this thread: 1 Guest(s)