i have my battle grounds and recently one of my friend added this script to my bg so that all players with level 1 gm can have +2 valor badge ( level 1 gm premium account ) but im having this kind of error in SQL and also the +2 valor badge didn't work how to fix this??
function HandOutPrizes { //<teamArray>, <numPlayers>, <itemID>, <qty>
while(.@i < getarg(1)) {
// Edit starts here
query_sql("select account_id,level from login where account_id = "+getd(getarg(0) + "[" + .@i + "]")+"order by level limit 1",.acc_id,.acc_lvl);
if(.acc_lvl == 1)
set .qty,2;
else
set .qty,0;
getitem getarg(2), getarg(3)+.qty, getd(getarg(0) + "[" + .@i + "]");
// Edit ends here
set .@i, .@i + 1;
}
return;
}
Question
Jin Freecs
i have my battle grounds and recently one of my friend added this script to my bg so that all players with level 1 gm can have +2 valor badge ( level 1 gm premium account ) but im having this kind of error in SQL and also the +2 valor badge didn't work how to fix this??
Link to comment
Share on other sites
7 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.