very thanks!!
but i added
set .@cost,50;
mes "It costs "+.@cost+" vote points to rent this item.";
if (#votepoints < .@cost) close;
next;
if(select("Rent.:Cancel.")==2) close;
set #votepoints, #votepoints-.@cost;
rentitem item,time;
query_sql("UPDATE `vote_point` SET `point` = '"+.@new+"' WHERE `account_id` = '"+getcharid(3)+"'");
mes "Here you go!";
close;
erm.. i found it doesnt work because,
set .@cost,50;
mes "It costs "+.@cost+" vote points to rent this item.";
if (#votepoints < .@cost) close;
next;
if(select("Rent.:Cancel.")==2) close;
set #votepoints, #votepoints-.@cost;
rentitem item,time;
mes "Here you go!";
close;
the point is not deducted
but when i add query
it goes straight to 0 even i have 55 points, it doesnt minus 1