[Help] - Login Dialog 'Leave' Button
#7

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Under OnPlayerDisconnect
Код:
new INI:file = INI_Open(Path(playerid)); 
        INI_SetTag(file,"Player's Data");
        INI_WriteInt(file,"Status",pInfo[playerid][pRStatus]); 
        INI_WriteInt(file,"Money",GetPlayerMoney(playerid));
        INI_WriteInt(file,"Scores",GetPlayerScore(playerid));
        INI_WriteInt(file,"Kills",pInfo[playerid][pRKills]);
        INI_WriteInt(file,"Deaths",pInfo[playerid][pRDeaths]);
        INI_WriteInt(file,"Donator",pInfo[playerid][pRDonator]);
        INI_Close(file);
I have this one.

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
pInfo[playerid][pRStatus] = 0; ....
the lines like these^ should be at bottom of OnPlayerDisconnect not at top of it it should be after you save player's data and show the full OnPlayerDisconnect to us
I've change the destination, i've put it under the OnPlayerConnect Callback.

Please Help.
Reply


Messages In This Thread
[Help] - Login Dialog 'Leave' Button - by SAMProductions - 03.06.2014, 05:59
Re: [Help] - Login Dialog 'Leave' Button - by SyntaxQ - 03.06.2014, 06:03
Re: [Help] - Login Dialog 'Leave' Button - by Rittik - 03.06.2014, 06:06
Re: [Help] - Login Dialog 'Leave' Button - by SAMProductions - 03.06.2014, 06:16
Re: [Help] - Login Dialog 'Leave' Button - by Rittik - 03.06.2014, 06:19
Re: [Help] - Login Dialog 'Leave' Button - by BroZeus - 03.06.2014, 06:19
Re: [Help] - Login Dialog 'Leave' Button - by SAMProductions - 03.06.2014, 07:44
Re: [Help] - Login Dialog 'Leave' Button - by Mriss - 03.06.2014, 07:50
Re: [Help] - Login Dialog 'Leave' Button - by Dignity - 03.06.2014, 07:56
Re: [Help] - Login Dialog 'Leave' Button - by SyntaxQ - 03.06.2014, 07:56

Forum Jump:


Users browsing this thread: 1 Guest(s)