updated script doc/ again
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5107 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
49a2b2d710
commit
0a4cbc8607
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user