Join Message not reading?
#3

OnPlayerDisconnect:
pawn Код:
if(fexist(UserPath(playerid)))
    {
        if(PlayerLogged[playerid] == 1)
        {
            new INI:file = INI_Open(UserPath(playerid));
            INI_SetTag(file,"data");
            INI_WriteInt(file,"Admin",PlayerInfo[playerid][pAdmin]);
            INI_WriteInt(file,"WantedLevel",GetPlayerWantedLevel(playerid));
            INI_WriteInt(file,"Score",GetPlayerScore(playerid));
            INI_WriteInt(file,"Cash",GetPlayerMoney(playerid));
            INI_WriteInt(file,"TruckerJob",PlayerInfo[playerid][TruckerJob]);
            INI_WriteString(file,"JoinMessage", PlayerInfo[playerid][JoinMessage]);
            PlayerInfo[playerid][Score] = GetPlayerScore(playerid);
            INI_Close(file);
        }
        return 1;
    }
Function:
pawn Код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Password",PlayerInfo[playerid][pPass]);
    INI_Int("Score",PlayerInfo[playerid][Score]);
    INI_Int("Cash",PlayerInfo[playerid][pCash]);
    INI_Int("WantedLevel",PlayerInfo[playerid][Wanted]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("Vip",PlayerInfo[playerid][pVip]);
    INI_Int("TruckerJob",PlayerInfo[playerid][TruckerJob]);
    INI_String("JoinMessage",PlayerInfo[playerid][JoinMessage], 28);
    INI_Int("Banned", PlayerInfo[playerid][pBanned]);
    return 1;
}
At first I saw 0. Then I use /joinmessage only show () not (Test)
Reply


Messages In This Thread
Join Message not reading? - by DerickClark - 30.04.2014, 14:02
Re: Join Message not reading? - by Dignity - 30.04.2014, 14:05
Re: Join Message not reading? - by DerickClark - 30.04.2014, 14:09
Re: Join Message not reading? - by DerickClark - 30.04.2014, 21:39
Re: Join Message not reading? - by Dignity - 30.04.2014, 21:43
Re: Join Message not reading? - by DerickClark - 30.04.2014, 21:45
Re: Join Message not reading? - by DerickClark - 01.05.2014, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)