03.03.2018, 03:43
What m4karow said above, but more check where Mobile[Mobile[i]] could be going awry.
By theory, when they disconnect, it should be set to -1, not INVALID_PLAYER_ID.
By theory, when they disconnect, it should be set to -1, not INVALID_PLAYER_ID.
PHP код:
if (CellTime[i] == cchargetime)
{
CellTime[i] = 1;
if(Mobile[Mobile[i]] == i) { CallCost[i] = CallCost[i]+callcost; }
}
CellTime[i]++;
if(Mobile[Mobile[i]] == -1 && CellTime[i] == 5)