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;
I'm trying to add script option trading 3 points for 1 day vip, more is wrong giving someone help?
Share this post
Link to post
Share on other sites