diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-01-30 06:16:21 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-01-30 06:16:21 +0000 |
commit | 102c2281c2eff9b87c4b6c4f78f3113e989d400d (patch) | |
tree | 00335929f5eeaefc1bf0171eac118132a3819355 | |
parent | d673c897dfe483653a52e02ddf168c293ee17cb6 (diff) | |
download | hercules-102c2281c2eff9b87c4b6c4f78f3113e989d400d.tar.gz hercules-102c2281c2eff9b87c4b6c4f78f3113e989d400d.tar.bz2 hercules-102c2281c2eff9b87c4b6c4f78f3113e989d400d.tar.xz hercules-102c2281c2eff9b87c4b6c4f78f3113e989d400d.zip |
updated script doc/ again
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5107 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | doc/script_commands.txt | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 14eaaea0a..a9512e601 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -4841,18 +4841,22 @@ set @i, distance(100,200,101,202); ---------------------------------------
*query_sql "your MySQL query", <array name>
-
+ Returns up to 127 values into array.
Example:
-query_sql "SELECT name FROM 'char' ORDER BY fame DESC LIMIT 5", @most_fame_dude;
+query_sql "SELECT name FROM 'char' ORDER BY fame DESC LIMIT 5", @most_fame_dude$;
mes "Hall Of Fame: TOP5";
-mes "1."+@most_fame_dude[0]; // Will return a person with the biggest fame value.
-mes "2."+@most_fame_dude[1];
-mes "3."+@most_fame_dude[2];
-mes "4."+@most_fame_dude[3];
-mes "5."+@most_fame_dude[4];
+mes "1."+@most_fame_dude$[0]; // Will return a person with the biggest fame value. +mes "2."+@most_fame_dude$[1];
+mes "3."+@most_fame_dude$[2];
+mes "4."+@most_fame_dude$[3];
+mes "5."+@most_fame_dude$[4];
+
+Note: It is available in SQL version only.
+Note: Use Text$[] array to recieve all data as text.
+
---------------------------------------
*setd "variable name", <value>
|