I'm trying to add script option trading 3 points for 1 day vip, more is wrong giving someone help?
mes "Okay!";
set .@account_id,getcharid(3);
set .@usedPoints,3;
set $nivelVip, 1;
set $diasVip, 1;
set $verificaVip, 1;
query_sql("UPDATE `cp_v4p_voters` SET points=(points-"+.@usedPoints+") WHERE account_id='"+.@account_id+"'");
if (getgroupid() == 0){
query_sql "UPDATE `login` SET `group_id` = "+$nivelVip+", `dt_vip` = DATE_ADD(`dt_vip`,INTERVAL "+$diasVip+" DAY) WHERE `group_id` = "+$nivelVip+" AND `account_id` = "+getcharid(3);dispbottom "Relogue para ter seu VIP ativado.";
}else{
query_sql "UPDATE `login` SET `group_id` = "+$nivelVip+", `dt_vip` = DATE_ADD(`dt_vip`,INTERVAL "+$diasVip+" DAY) WHERE `group_id` = "+$nivelVip+" AND `account_id` = "+getcharid(3);
}
garbagecol();
close2;
message strcharinfo(0),"Points added";
end;
Question
Break San
I'm trying to add script option trading 3 points for 1 day vip, more is wrong giving someone help?
http://pastebin.com/yx19q9yx
Link to comment
Share on other sites
6 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.