*** 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
#2

The irc or ingame messages?
Reply
#3

Try moving that part to the top of the callback, just as a test
Reply
#4

@ikkentim, both of them
@RedFusion, still
Reply
#5

pawn Код:
IRC_GroupSay(gGroupID, IRC_CHANNEL, leaveMsg);
IRC_GroupSay(gGroupID, ADMIN_CHANNEL, leaveMsg);
Maybe?
Reply
#6

no mine is
PHP код:
new botIDs[MAX_BOTS], groupID
There is NO Reason why it shouldn't be working.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)