Jump to content
  • 0

Convert vip_status(3) into seconds


funtwocrasher

Question


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   3
  • Joined:  06/17/12
  • Last Seen:  

Hi guys! Is this possible?

I am trying this code but it doesnt work

vipseconds = vip_status(3);

SC_JEXPBOOST,vipseconds,0;

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  108
  • Reputation:   12
  • Joined:  06/19/12
  • Last Seen:  

set vipseconds, vip_status(3);

SC_JEXPBOOST,vipseconds,0;

 

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   3
  • Joined:  06/17/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  108
  • Reputation:   12
  • Joined:  06/19/12
  • Last Seen:  

May I know your whole script?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   3
  • Joined:  06/17/12
  • Last Seen:  

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 .@Timer, 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",.@Timer);

		end;
}

 

Link to comment
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.

×
×
  • Create New...