24.10.2012, 21:14
Messages aren't sending.
Disconnect messages aren't sending.
It should be, I didn't get near them. suddenly they stopped.
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
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(playerid, 2);
//=================================IRC====================================//
new leaveMsg[128], name[MAX_PLAYER_NAME], reasonMsg[8];
switch(reason)
{
case 0: reasonMsg = "Timeout";
case 1: reasonMsg = "Leaving";
case 2: reasonMsg = "Kicked";
}
GetPlayerName(playerid, name, sizeof(name));
format(leaveMsg, sizeof(leaveMsg), "02[%d] 03*** %s has left the server. (%s)", playerid, name, reasonMsg);
IRC_GroupSay(groupID, IRC_CHANNEL, leaveMsg);
IRC_GroupSay(groupID, ADMIN_CHANNEL, leaveMsg);
//========================================================================//
new pname[MAX_PLAYER_NAME], string[63 + MAX_PLAYER_NAME];
switch(reason)
{
case 0: reasonMsg = "Timeout";
case 1: reasonMsg = "Leaving";
case 2: reasonMsg = "Kicked";
}
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s(%d) has Left the server. (%s)",pname, playerid,reasonMsg);
SendClientMessageToAll(COLOR_CYAN, string);
return 1;
}
It should be, I didn't get near them. suddenly they stopped.