From 0a4cbc8607da7ce5a369427a954915f4c3da8420 Mon Sep 17 00:00:00 2001 From: Lupus Date: Mon, 30 Jan 2006 06:16:21 +0000 Subject: [PATCH] updated script doc/ again git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5107 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 14eaaea0aa..a9512e601e 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", - + 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",