LO_KEY

LO_KEY

Joined
Jan 23, 2007

Activity Stream

LO_KEY commented on a Page, 'Jailing' system  -  Jan 26, 2007

@ no_body21

var %time_left = Unspecified
if ($timer( $+(%user,unjailmsg) ) != $null) { var %time_left = $duration( $timer($+(%user,unjailmsg)).secs ) }

Unspecified then vars again?

could use only
%time_left = $duration( $timer($+(%user,unjailmsg)).secs

reason we setting the var twice, is if when the user is jailed, the jailer doesnt put a time to unjail, then it will remain Unspecified, if they did then itll replace Unspecifed with the time left for the jailed. :p

Look at the code. :D

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.