Bläddra i källkod

updated script doc/ again

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5107 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lupus 19 år sedan
förälder
incheckning
0a4cbc8607
1 ändrade filer med 11 tillägg och 7 borttagningar
  1. 11 7
      doc/script_commands.txt

+ 11 - 7
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>