[BUG?] Function not execute
#1

Hello, here after decrementation, the rest of the script does not work:

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(IsPlayerNPC(playerid)) return 1;
    OnlinePlayers--; // executed
    print("-1 ONLINE"); // executed
    CountJob[PlayerInfo[playerid][pJob]]--; // executed
    print("-1 JOB"); // executed
    CountGroupe[PlayerInfo[playerid][pIDGroupe]]--; // NO executed
    print("-1 GROUPE"); // NO executed
    if(UserDechi == playerid)
    {
        UserDechi = 65555; // NO executed
    }
    print("UserDechi changed"); // NO executed
    if(PlayerCanSpawn[playerid])
    {
        SavePlayerInfo(playerid); // NO executed
        print("SAVE PLAYER"); // NO executed
        SaveGroupe(PlayerInfo[playerid][pIDGroupe]); // NO executed
        print("SAVE GROUPE + PLAYER"); // NO executed
    }
    return 1;
}
Why did the script is not executed ??

Many thanks, have a nice day
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)