Jump to content
  • 0

query_sql loop


whateveremer

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  01/05/14
  • Last Seen:  

	getpartymember getcharid(1),2;
        for(set .@i,1; .@i<$@partymembercount; set .@i,.@i+1){
	query_sql("INSERT INTO "laddertest" (accountid) VALUES("+$@partymemberaid[.@i]+")");
	announce $@partymemberaid[.@i],bc_all,0x00FF00;
	}

hi, im having problem adding accounts ids of the members in the party, it only adds 1 account id in the database.. it should add all account ids..

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  


getpartymember getcharid( 1 ), 2;

for ( set .@i, 1; .@i < $@partymembercount; set .@i , .@i + 1 ) {

query_sql "INSERT INTO `laddertest` ( `accountid` ) VALUES ('" +$@partymemberaid[.@i]+ "')";

announce $@partymemberaid[.@i],bc_all,0x00FF00;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  01/05/14
  • Last Seen:  

it still adds 1 account id, i need to add all account ids of the characters in the party


sir, what i did is i modified the ranking system of this script ive found in eA..
http://pastebin.com/sZgQyFsD

the original script is working fine here's the copy of the script

http://pastebin.com/9dfTi4CJ

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...