19.03.2015, 14:21
Ok, the reason is if you don't have "Ban" key at all (Ban = 0 will work), PlayerInfo[playerid][pBan] value won't change. So, OnPlayerDisconnect (post data load) or OnPlayerConnect (pre data load) reset that variable to default:
In fact, it's recommended to reset all player variables. Include YSI\y_utils and do this:
(if pInfo is the name of player enum).
pawn Код:
PlayerInfo[playerid][pBan] = 0;
pawn Код:
memset(PlayerInfo[0][0], 0, MAX_PLAYERS * _:pInfo)