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

Remove after specific time


Post New Thread Reply   
 
Thread Tools Display Modes
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 10-29-2012 , 23:52   Re: Remove after specific time
Reply With Quote #81

Why you are using replace_all ? Just use an space on formatex.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-30-2012 , 00:47   Re: Remove after specific time
Reply With Quote #82

It works fine when you set it for more than zero days

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
Why you are using replace_all ?
He/she doesn't seem to listen well because I told him/her that once before.
__________________
fysiks is online now
Pewdiepie
Senior Member
Join Date: Oct 2012
Old 10-30-2012 , 12:09   Re: Remove after specific time
Reply With Quote #83

How can I make it possible for 30 days?
Pewdiepie is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 10-30-2012 , 13:06   Re: Remove after specific time
Reply With Quote #84

Just take a look to "Days" var on Cmdpurchase function.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Pewdiepie
Senior Member
Join Date: Oct 2012
Old 10-30-2012 , 15:23   Re: Remove after specific time
Reply With Quote #85

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
Just take a look to "Days" var on Cmdpurchase function.
?
Pewdiepie is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-30-2012 , 15:32   Re: Remove after specific time
Reply With Quote #86

Your edit is correct now
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Pewdiepie
Senior Member
Join Date: Oct 2012
Old 10-31-2012 , 12:49   Re: Remove after specific time
Reply With Quote #87

Server crashes after every map change
Anyone knows why?
Pewdiepie is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-31-2012 , 14:54   Re: Remove after specific time
Reply With Quote #88

Try closing your nVault connection

Other than that, what makes you think it is the fault of this plugin?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Pewdiepie
Senior Member
Join Date: Oct 2012
Old 11-01-2012 , 08:29   Re: Remove after specific time
Reply With Quote #89

Quote:
Originally Posted by YamiKaitou View Post
Try closing your nVault connection

Other than that, what makes you think it is the fault of this plugin?
It's the Vault's fault, im pretty sure of that. Whenever i delete the vault file, the server just runs great. But after a while the server crashes.
Pewdiepie is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 11-01-2012 , 11:29   Re: Remove after specific time
Reply With Quote #90

Code:
#include < amxmodx > #include < nvault > #define DELETE_VIPS_AFTER   30 new bool:global_bIsVip[ 33 ]; new global_iVault; public plugin_init( ) {     register_plugin( "Tralalal", "1.0", "-.^^" );     register_clcmd( "say /purchase", "command_SaveVip" );         global_iVault = nvault_open( "VipVault" ); } public plugin_end( ) {     nvault_prune( global_iVault , 0 , get_systime() - 86400 * DELETE_VIPS_AFTER );     nvault_close( global_iVault ); } public client_authorized( id ) {     new szAuthID[ 35 ], szData[ 4 ];     new iTimestamp, iDataExists;     get_user_authid( id , szAuthID , charsmax( szAuthID ) );         iDataExists = nvault_lookup( global_iVault, szAuthID, szData, charsmax( szData ), iTimestamp );         if( iDataExists ) global_bIsVip[ id ] = true;     else global_bIsVip[ id ] = false; } public command_SaveVip( id ) {     if( global_bIsVip[ id ] )     {         client_print( id, print_chat, "You already have an item!" );         return PLUGIN_HANDLED;     }     new szAuthID[ 35 ];     get_user_authid( id , szAuthID , charsmax( szAuthID ) );     /*     new iTimestamp, iDataExists, szData[ 4 ];     iDataExists = nvault_lookup( global_iVault, szAuthID, szData, charsmax( szData ), iTimestamp );             if ( iDataExists )     {         client_print( id, print_chat, "You already have an item!" );         return PLUGIN_HANDLED;     } */     client_print( id, print_chat, "You purchased an item!" );     nvault_set( global_iVault , szAuthID , "1" );     return PLUGIN_HANDLED; }

Last edited by OvidiuS; 11-01-2012 at 11:40.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Reply


Thread Tools
Display Modes

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 21:06.


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