Raised This Month: $32 Target: $400
 8% 

Subplugin Submission [ZP] Premium Member v3.0


Post New Thread Reply   
 
Thread Tools Display Modes
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-04-2015 , 09:23   Re: [ZP] Premium Member + Gold Member (Beta v2.1)
Reply With Quote #121

Nevermind.
zmd94 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 10-11-2015 , 12:50   Re: [ZP] Premium Member v3.0
Reply With Quote #122

Premium Member
(v3.0)

Status:
UP-TO-DATE (12/10/2014)

Last edited by zmd94; 10-11-2015 at 12:51.
zmd94 is offline
Smirzh
Junior Member
Join Date: Oct 2015
Old 11-12-2015 , 10:02   Re: [ZP] Premium Member v3.0
Reply With Quote #123

Oh, not here

Last edited by Smirzh; 11-12-2015 at 10:02.
Smirzh is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-12-2015 , 10:33   Re: [ZP] Premium Member v3.0
Reply With Quote #124

What happen, Smirzh?
zmd94 is offline
Smirzh
Junior Member
Join Date: Oct 2015
Old 11-12-2015 , 23:30   Re: [ZP] Premium Member v3.0
Reply With Quote #125

There was an error in the CLeS, and wrote here. Confused threads.
Now error in Premium Member.
L 11/13/2015 - 07:20:16: String formatted incorrectly - parameter 3 (total 2)
L 11/13/2015 - 07:20:16: [AMXX] Run time error 25 (plugin "premium_member.amxx") - debug not enabled!
L 11/13/2015 - 07:20:16: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

L 11/13/2015 - 07:23:12: String formatted incorrectly - parameter 3 (total 2)
L 11/13/2015 - 07:23:12: [AMXX] Displaying debug trace (plugin "premium_member.amxx")
L 11/13/2015 - 07:23:12: [AMXX] Run time error 25: parameter error
L 11/13/2015 - 07:23:12: [AMXX] [0] premium_member.sma::plugin_cfg (line 188 )

Last edited by Smirzh; 11-12-2015 at 23:30.
Smirzh is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-13-2015 , 19:32   Re: [ZP] Premium Member v3.0
Reply With Quote #126

Have you enable the debug?

Then give me the errors. ;)
zmd94 is offline
Smirzh
Junior Member
Join Date: Oct 2015
Old 11-14-2015 , 02:31   Re: [ZP] Premium Member v3.0
Reply With Quote #127

With enable debug:
L 11/13/2015 - 07:23:12: String formatted incorrectly - parameter 3 (total 2)
L 11/13/2015 - 07:23:12: [AMXX] Displaying debug trace (plugin "premium_member.amxx")
L 11/13/2015 - 07:23:12: [AMXX] Run time error 25: parameter error
L 11/13/2015 - 07:23:12: [AMXX] [0] premium_member.sma::plugin_cfg (line 188 )
Smirzh is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-14-2015 , 03:05   Re: [ZP] Premium Member v3.0
Reply With Quote #128

Just change below:
Code:
public plugin_cfg()
{
    g_VaultID = nvault_open(VAULTNAME)
    if(g_VaultID == INVALID_HANDLE)
    {
        new szText[128]; formatex(szText, 127, "Error opening Premium Member database [%s]!", VAULTNAME);
        set_fail_state(szText)
    }
    
    server_print("Premium Member database [%s] successfully loaded!", VAULTNAME)
    
    if(get_pcvar_num(g_iDataExpired))
    {
        nvault_prune(g_VaultID, 0, get_systime() - (86400 * get_pcvar_num(g_iDataExpired)))
    }
}
-->
Code:
public plugin_cfg()
{
    g_VaultID = nvault_open(VAULTNAME)
    if(g_VaultID == INVALID_HANDLE)
    {
        new szText[128]
        formatex(szText, 127, "Error opening Premium Member database [%s]!", VAULTNAME)
        set_fail_state(szText)
    }
    
    server_print("Premium Member database [%s] successfully loaded!", VAULTNAME)
    
    if(get_pcvar_num(g_iDataExpired))
    {
        nvault_prune(g_VaultID, 0, get_systime() - (86400 * get_pcvar_num(g_iDataExpired)))
    }
}
zmd94 is offline
hunter80
Junior Member
Join Date: Dec 2011
Old 11-23-2015 , 10:23   Re: [ZP] Premium Member v3.0
Reply With Quote #129

[PM] Someone is opening premium menu. Please try again later! Problem!?
__________________
hunter80 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-23-2015 , 21:35   Re: [ZP] Premium Member v3.0
Reply With Quote #130

That is not a problem. It already being designed to do like that. The message indicated that there are already somebody opening the premium menu.

The code only allow one admin to open the premium menu at a time.
zmd94 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 08:10.


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