*** Terrible Title Removed
#1

Messages aren't sending.
PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new 
INI:File INI_Open(UserPath(playerid));
    
INI_SetTag(File,"Player's Data");
    
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    
INI_WriteInt(File,"Score",GetPlayerScore(playerid));
    
INI_WriteInt(File,"WantedLevel",GetPlayerWantedLevel(playerid));
    
INI_WriteInt(File,"AdminLevel",PlayerInfo[playerid][pAdminLevel]);
    
INI_WriteInt(File,"Army",PlayerInfo[playerid][pArmy]);
    
INI_WriteInt(File,"BankAccount",PlayerInfo[playerid][pBankAccount]);
    
INI_WriteInt(File,"Datasaved",PlayerInfo[playerid][pAccountdata]);
    
INI_WriteInt(File,"Arrests",PlayerInfo[playerid][pArrests]);
    
INI_WriteInt(File,"Robberies",PlayerInfo[playerid][pRobberies]);
    
INI_WriteInt(File,"Hits",PlayerInfo[playerid][pHits]);
    
INI_WriteInt(File,"Tazers",PlayerInfo[playerid][pTazers]);
    
INI_WriteInt(File,"Heals",PlayerInfo[playerid][pHeals]);
    
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    
INI_WriteInt(File,"AntiBanned",PlayerInfo[playerid][pABanned]);
    
INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
    
INI_WriteInt(File,"Jail",PlayerInfo[playerid][pJail]);
    
INI_Close(File);
    
ResetVariables(playerid);
    
TextDrawDestroy(JailTimer[playerid]);
    
LeaveGroup(playerid2);
    
//=================================IRC====================================//
    
new leaveMsg[128], name[MAX_PLAYER_NAME], reasonMsg[8];
    switch(
reason)
    {
        case 
0reasonMsg "Timeout";
        case 
1reasonMsg "Leaving";
        case 
2reasonMsg "Kicked";
    }
    
GetPlayerName(playeridnamesizeof(name));
    
format(leaveMsgsizeof(leaveMsg), "02[%d] 03*** %s has left the server. (%s)"playeridnamereasonMsg);
    
IRC_GroupSay(groupIDIRC_CHANNELleaveMsg);
    
IRC_GroupSay(groupIDADMIN_CHANNELleaveMsg);
    
//========================================================================//
    
new pname[MAX_PLAYER_NAME], string[63 MAX_PLAYER_NAME];
    switch(
reason)
    {
        case 
0reasonMsg "Timeout";
        case 
1reasonMsg "Leaving";
        case 
2reasonMsg "Kicked";
    }
    
GetPlayerName(playeridpnamesizeof(pname));
    
format(stringsizeof(string), "%s(%d) has Left the server. (%s)",pnameplayerid,reasonMsg);
    
SendClientMessageToAll(COLOR_CYANstring);
    return 
1;

Disconnect messages aren't sending.
It should be, I didn't get near them. suddenly they stopped.
Reply


Messages In This Thread
*** Terrible Title Removed - by _Khaled_ - 24.10.2012, 21:14
Re: Little weird thing - by ikkentim - 24.10.2012, 21:18
Re: Little weird thing - by RedFusion - 24.10.2012, 21:18
Re: Little weird thing - by _Khaled_ - 24.10.2012, 21:26
Re: Little weird thing - by Face9000 - 24.10.2012, 21:33
Re: Little weird thing - by _Khaled_ - 24.10.2012, 21:45

Forum Jump:


Users browsing this thread: 1 Guest(s)