 |
|
New Member
|

10-31-2010
, 23:28
Re: Loyalty Plugin 2.1.0 (Updated 10-31-10)
|
#2
|
I'm experiencing a possible bug or a missmatch configuration. I'm adding admins but they are erased after restart server or change map, seems i'm being removed from admin table and get into loyal table, to back later when got required points. It seems the normal behavior, for a player. But i'm already registered as admin.
Could you help me please?
EDIT1:
I think i found the problem, i just don't know if this fix the problem definitely...
Format(query, sizeof(query), "DELETE FROM sm_admins WHERE adminuntil<%i AND immunity > 0", GetTime());
Should be:
Format(query, sizeof(query), "DELETE FROM sm_admins WHERE adminuntil<%i AND immunity < 2", GetTime());
Assuming that all admins or users that shouldn't be affected by the loyalty system have immunity greater than 1.
After change that, admins aren't being removed anymore, no side effect experienced for while.
Thanks.
Last edited by ratonofx; 10-31-2010 at 23:54.
Reason: Add info.
|
|
|
|