Difference between revisions of "Queueadd"

From Hercules Wiki
Jump to: navigation, search
(Created page with "== Syntax == queueadd(<queue_id>,<account_id>); == Description == Adds <account_id> to queue of <queue_id>, returning 1 if <account_id> is already present in the queue, if <ac...")
 
m (Minor formatting update.)
 
Line 1: Line 1:
 
== Syntax ==
 
== Syntax ==
queueadd(<queue_id>,<account_id>);
+
*'''queueadd'''(<queue_id>,<account_id>);
 +
 
 
== Description ==
 
== Description ==
 
Adds <account_id> to queue of <queue_id>, returning 1 if <account_id> is already
 
Adds <account_id> to queue of <queue_id>, returning 1 if <account_id> is already
present in the queue, if <account_id> was not present in queue, it returns 0
+
present in the queue, if <account_id> was not present in queue, it returns 0.
 +
 
 
== Example ==
 
== Example ==
   if(queueadd(.@id,[[getcharid]](3)) == 1){
+
   if('''queueadd'''(.@id,[[getcharid]](3)) == 1){
 
     [[mes]] "You are already in the queue.";
 
     [[mes]] "You are already in the queue.";
 
     [[close]];
 
     [[close]];

Latest revision as of 17:07, 6 November 2013

Syntax

  • queueadd(<queue_id>,<account_id>);

Description

Adds <account_id> to queue of <queue_id>, returning 1 if <account_id> is already present in the queue, if <account_id> was not present in queue, it returns 0.

Example

 if(queueadd(.@id,getcharid(3)) == 1){
   mes "You are already in the queue.";
   close;
 }