set .@nb, query_sql("select char_id, win, lost from char_bg order by win desc limit 10", .@char_id, .@win, .@lost);
mes "^0000FF[ BG Ranking ]^000000";
for ( set .@i, .@j; .@i < 10; set .@i, .@i + 1 ) {
query_sql "select name from `char` where char_id = "+.@char_id[.@i], .@name$;
mes "^0000FF"+ (.@i+1) +": ^006699"+ ( (.@name$[.@i] == "")? "None":.@name$[.@i]) +"^000000 ^00AA00W["+ .@win[.@i] +"]^000000 ^FF0000L["+ .@lost[.@i] +"]^000000";
}
Question
PewN
I'm having a problem with my script on query_sql
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.