Login/Register Bug
#1

Hello, i need help with my login and register system.
I created the login and register system with the help of Kush's Tutorial.

The bug is, when i disconnect, my Admin Level and VIP Level increased one text.

The underlined is the one that increased.
The Account.ini:
Quote:

[Player Account]
Password = 306643852
Cash = 35061
Scores = 5
Admin Level = 0
VIP Level = 0
Kills = 0
Deaths = 0
Admin Level = 0
VIP Level = 0

My OnPlayerDisconnect:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{    
    new INI:File = INI_Open(UserPath(playerid));
    new sztring[3000];
    format(sztring,sizeof(sztring),"%s Account",PlayerName(playerid));
    INI_SetTag(File, sztring);
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
    INI_WriteInt(File,"Admin Level",pInfo[playerid][pLevel]);
    INI_WriteInt(File,"VIP Level",pInfo[playerid][pVIP]);
    INI_WriteInt(File,"Kills",pInfo[playerid][pKills]);
    INI_WriteInt(File,"Deaths",pInfo[playerid][pDeaths]);
    INI_Close(File);
    return 1;
}
Any help ?
Sorry for bad english.
Reply


Messages In This Thread
Login/Register Bug - by ChandraLouis - 12.07.2015, 07:53
Re: Login/Register Bug - by rockhopper - 12.07.2015, 08:00
Re: Login/Register Bug - by DTV - 12.07.2015, 08:02
Re: Login/Register Bug - by ChandraLouis - 12.07.2015, 08:06
Re: Login/Register Bug - by Jakwob - 12.07.2015, 08:44
Re: Login/Register Bug - by Jakwob - 12.07.2015, 08:46
Re: Login/Register Bug - by ChandraLouis - 12.07.2015, 08:53
Re: Login/Register Bug - by DTV - 12.07.2015, 08:57
Re: Login/Register Bug - by ChandraLouis - 12.07.2015, 09:01
Re: Login/Register Bug - by DTV - 12.07.2015, 09:03

Forum Jump:


Users browsing this thread: 1 Guest(s)