07.11.2015, 03:08
(
Последний раз редактировалось UploaD; 07.11.2015 в 04:41.
Причина: Found a solution by myself
)
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.
So there is the line when the player press "ESC" or "Quit" it kicks out the player but it also create the ini file.
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
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!
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);
pawn Код:
[Player's Data]
AdminLevel = 0
VIPLevel = 0
Money = 0
Scores = 0
Kills = 0
Deaths = 0
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);
}