Ban is not off y_ini
#5

Quote:
Originally Posted by Misiur
Посмотреть сообщение
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:
pawn Код:
PlayerInfo[playerid][pBan] = 0;
In fact, it's recommended to reset all player variables. Include YSI\y_utils and do this:
pawn Код:
memset(PlayerInfo[0][0], 0, MAX_PLAYERS * _:pInfo)
(if pInfo is the name of player enum).
I guess you are right! I forgot to reset all the keys.

Now there is "warning 213: tag mismatch" for "memset(PlayerInfo[0][0], 0, MAX_PLAYERS * _Info);"
Reply


Messages In This Thread
Ban is not off y_ini - by maximthepain - 19.03.2015, 13:13
Re: Ban is not off y_ini - by Misiur - 19.03.2015, 13:24
Re: Ban is not off y_ini - by maximthepain - 19.03.2015, 13:56
Re: Ban is not off y_ini - by Misiur - 19.03.2015, 14:21
Re: Ban is not off y_ini - by maximthepain - 19.03.2015, 14:29
Re: Ban is not off y_ini - by Misiur - 19.03.2015, 14:53
Re: Ban is not off y_ini - by maximthepain - 19.03.2015, 15:12
Re: Ban is not off y_ini - by Misiur - 19.03.2015, 15:22
Re: Ban is not off y_ini - by maximthepain - 19.03.2015, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)