Jump to content
  • 0

basic select query_sql problem


Onairda

Question


  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.03
  • Content Count:  167
  • Reputation:   8
  • Joined:  12/30/16
  • Last Seen:  

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

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

your char_reg_num table has no data for the NPC to display it. have you checked that?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.03
  • Content Count:  167
  • Reputation:   8
  • Joined:  12/30/16
  • Last Seen:  

On 9/21/2019 at 11:56 AM, Emistry said:

your char_reg_num table has no data for the NPC to display it. have you checked that?

as i checked my database sir. the reborncount is inside the char_reg_num . but still not displaying

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  411
  • Reputation:   261
  • Joined:  04/25/12
  • Last Seen:  

The query is right. Can you show the register in the table? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...