Hi, i just thinking what is wrong with my script, why the npc dont show any data Thank you /kiss
prontera,159,180,4 script Ladder 100,{
set .@count, query_sql ("SELECT char_id,value FROM `char_reg_num` WHERE key='reborncount' ORDER BY value DESC",.@charid,.@reborncount);
mes "[RebornLadder]";
for( set .@i, 0; .@i < .@count; set .@i, .@i+1) {
query_sql "SELECT `name` FROM `char` WHERE char_id="+.@charid[.@i]+"",.@charname$;
mes .@charname$+" "+.@reborncount[.@i];
}
close;
Question
Onairda
Hi, i just thinking what is wrong with my script, why the npc dont show any data Thank you /kiss
prontera,159,180,4 script Ladder 100,{ set .@count, query_sql ("SELECT char_id,value FROM `char_reg_num` WHERE key='reborncount' ORDER BY value DESC",.@charid,.@reborncount); mes "[RebornLadder]"; for( set .@i, 0; .@i < .@count; set .@i, .@i+1) { query_sql "SELECT `name` FROM `char` WHERE char_id="+.@charid[.@i]+"",.@charname$; mes .@charname$+" "+.@reborncount[.@i]; } close;
Link to comment
Share on other sites
3 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.