Jump to content
  • 0
Sign in to follow this  
funtwocrasher

Convert vip_status(3) into seconds

Question

Hi guys! Is this possible?

I am trying this code but it doesnt work

vipseconds = vip_status(3);

SC_JEXPBOOST,vipseconds,0;

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

set vipseconds, vip_status(3);

SC_JEXPBOOST,vipseconds,0;

 

Try that. Let me know if it fixed your issue.

Share this post


Link to post
Share on other sites
  • 0
16 minutes ago, Weistony said:

set vipseconds, vip_status(3);

SC_JEXPBOOST,vipseconds,0;

 

Try that. Let me know if it fixed your issue.

Did not work.

Share this post


Link to post
Share on other sites
  • 0

May I know your whole script?

Share this post


Link to post
Share on other sites
  • 0
On 7/25/2020 at 6:44 PM, Weistony said:

May I know your whole script?

-	script	VIP_STATUSs	-1,{
OnPCLoginEvent:
		if ( vip_status(1) ) {
		set viptime, vip_status(3);
		sc_start SC_EXPBOOST,viptime,0;
			set [email protected], vip_status(VIP_STATUS_EXPIRE);
			dispbottom "Account Status : VIP Account";
			dispbottom "Expire Date: "+ gettimestr("%m-%d-%Y %H:%M:%S",21,vip_status(VIP_STATUS_EXPIRE));
			dispbottom "Time left : "+ callfunc("Time2Str",[email protected]);

		end;
}

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.