register date
#7

Quote:
Originally Posted by Porsche911
View Post
For the love of god, stop coming to the forum for EVERY single thing you need help with.
For the love of god, THIS IS NOT YOUR BUSINESS IF I COME HERE TO ASK HELP! It's called "scripting HELP" for a reason! Don't like my post? Ignore it, nobody asks you to reply!

Quote:
Originally Posted by Roel
View Post
Do you have a saving function what oyu use on disconnect or something, the fault can also be there.
And a loading function?
Yes, i have many saving functions: OnGamemodeExit, OnPlayerDisconnect and a custom stock to save all players online data every 5 minutes. This is OnPlayerDisconnect:

pawn Code:
new INI:File = INI_Open(Path(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerCash(playerid));
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt(File,"Kills",GetPlayerScore(playerid));
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(File,"NoPm",PlayerInfo[playerid][pNopm]);
    INI_WriteInt(File,"Mute",PlayerInfo[playerid][pMuted]);
    INI_WriteInt(File,"Vip",PlayerInfo[playerid][pVip]);
    INI_WriteInt(File,"C4",PlayerInfo[playerid][pC4]);
    INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
    INI_WriteInt(File,"Cookies",PlayerInfo[playerid][pCookies]);
    INI_WriteInt(File,"Warn",PlayerInfo[playerid][pWarn]);
    INI_WriteInt(File, "RegisterDate_day", PlayerInfo[playerid][RegisterDate_day]);
    INI_WriteInt(File, "RegisterDate_mon", PlayerInfo[playerid][RegisterDate_mon]);
    INI_WriteInt(File, "RegisterDate_year", PlayerInfo[playerid][RegisterDate_year]);
    INI_WriteInt(File, "RegisterDate_hour", PlayerInfo[playerid][RegisterDate_hour]);
    INI_WriteInt(File, "RegisterDate_min", PlayerInfo[playerid][RegisterDate_min]);
    INI_WriteInt(File, "RegisterDate_sec", PlayerInfo[playerid][RegisterDate_sec]);
    INI_WriteInt(File,"Jailed",PlayerInfo[playerid][pJailed]);
    INI_WriteInt(File,"Logged",0);
    INI_WriteInt(File,"B_Time",PlayerInfo[playerid][B_Time]);
    INI_WriteInt(File,"B_Till",PlayerInfo[playerid][B_Till]);
    INI_WriteInt(File,"AdminActions",PlayerInfo[playerid][pAdminActions]);
    INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
    INI_Close(File);
The custom stock is the same, with just added loop.
Reply


Messages In This Thread
register date - by Face9000 - 18.12.2012, 12:38
Re: register date - by park4bmx - 18.12.2012, 13:02
Re: register date - by Face9000 - 18.12.2012, 13:04
Re: register date - by Roel - 18.12.2012, 13:18
Re: register date - by park4bmx - 18.12.2012, 13:21
Re: register date - by Fool - 18.12.2012, 13:44
Re: register date - by Face9000 - 18.12.2012, 17:07
Re: register date - by Fool - 19.12.2012, 06:11
Re: register date - by park4bmx - 19.12.2012, 07:40
Re: register date - by Face9000 - 19.12.2012, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)