The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vote system tag account?
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #8
RE: Vote system tag account?
(10-25-2012 03:13 AM)Mordaunt Wrote:  Your code:

Code:
[FUNCTION vote]
IF (!<SRC.account.tag0.blah>) // <--- if no tag
    IF <eval <src.findid.account.tag0.blah.timer>/3600>> // <-- evaluate the tag thats not there??
    SRC.SYSMESSAGE @,3,1 You have had voted. You left <eval <src.findid.i_mem_vote.timer>/3600> hours to try again.
    ENDIF

and this in the player event:
IF (<eval <SERV.TIME>-<serv.account.tag0.blah>/10> > 86400)
    serv.account.tag.blah=
endif

Code:
[FUNCTION vote]
IF (<account.tag0.blah>)
    src.sysmessage @,3,1 You have already voted.
    src.sysmessage @,3,1 You can vote again in <eval ((<serv.time>-<src.account.tag0.blah>/10)/60)> minutes
    return 1
else
   src.account.tag0.blah = <serv.time> // rewrite the tag to current time
   //vote script
endif

ON=@LOGIN
IF (<eval <serv.time>-<src.account.tag0.blah>/10> > 86400)
   src.account.tag0.blah=
endif

Untested but that should do it.


Thanks!

The problem here now it is, that counter

Code:
src.sysmessage @,3,1 You can vote again in <eval ((<serv.time>-<src.account.tag0.blah>/10)/60)> minutes

works bad Shock
The counter keeps going up and not down xD Smile

Any idea Tongue?

[Image: 2hy9q0y.png]
10-25-2012 11:07 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Vote system tag account? - Lazarus - 10-24-2012, 12:48 PM
RE: Vote system tag account? - Mordaunt - 10-24-2012, 01:12 PM
RE: Vote system tag account? - Lazarus - 10-24-2012, 01:30 PM
RE: Vote system tag account? - Shamino - 10-24-2012, 05:18 PM
RE: Vote system tag account? - Mordaunt - 10-24-2012, 09:56 PM
RE: Vote system tag account? - Lazarus - 10-25-2012, 02:03 AM
RE: Vote system tag account? - Mordaunt - 10-25-2012, 03:13 AM
RE: Vote system tag account? - Lazarus - 10-25-2012 11:07 AM
RE: Vote system tag account? - RanXerox - 10-25-2012, 11:52 AM
RE: Vote system tag account? - Lazarus - 10-25-2012, 01:06 PM
RE: Vote system tag account? - RanXerox - 10-25-2012, 02:33 PM
RE: Vote system tag account? - Lazarus - 10-25-2012, 02:49 PM
RE: Vote system tag account? - Hayur - 04-14-2015, 03:53 PM
RE: Vote system tag account? - XuN - 04-14-2015, 04:44 PM
RE: Vote system tag account? - Hayur - 04-14-2015, 09:51 PM
RE: Vote system tag account? - XuN - 04-14-2015, 11:23 PM
RE: Vote system tag account? - Hayur - 04-14-2015, 11:55 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)