Raised This Month: $ Target: $400
 0% 

Loyalty Plugin 2.1.1 (Updated 10-31-10)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Xsinthis
Senior Member
Join Date: Oct 2008
Location: Canadia, eh?
Plugin ID:
1974
Plugin Version:
2.1.1
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Users can get loyal points by playing on your server and they can buy slots with them.
    Unapprover:
    Reason for Unapproving:
    Various errors and issues left unfixed for months. (See post #43)
    Old 10-31-2010 , 21:39   Re: Loyalty Plugin 2.1.0 (Updated 09-28-10)
    Reply With Quote #1

    Bug Fix Release 2.1.1
    - Fixed typo in a SQL query (thanks ratonofx)
    __________________
    Xsinthis is offline
    ratonofx
    New Member
    Join Date: Oct 2010
    Old 10-31-2010 , 23:28   Re: Loyalty Plugin 2.1.0 (Updated 10-31-10)
    Reply With Quote #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.
    ratonofx is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 18:50.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode