Hey guys, while I was checking a script i noticed that I cant exchange my points it keeps saying this part mes "You don't have enough points to exchange.";
This is the part of the script, I got 15 points from my mysql.
if(select("Exchange my points into coins:Cancel")==2) close;if(!query_sql("SELECT `points` FROM `wicked_ladder` WHERE `char_id` = "+getcharid(0)+"",@WA_POINTS))@WA_POINTS=0;
mes "[ ^04B4AEAvery^000000 ]";if(@WA_POINTS< $@WA_WP)
mes "You don't have enough points to exchange.";else{
mes "You currently have ^0000aa"+@WA_POINTS+"^000000 points. How much would you exchange?";
input .@cb,$@WA_WP,@WA_POINTS;if(.@cb>@WA_POINTS){
mes "You want to exchange too much points.";}else{.@div=.@cb/ $@WA_WP;
getitem 32609,.@div;.@reste=.@cb-(.@cb% $@WA_WP);if((@WA_POINTS-.@reste)<=0){
query_sql("DELETE FROM `wicked_ladder` WHERE `char_id` = '"+getcharid(0)+"'");}else{
query_sql("UPDATE `wicked_ladder` SET `points` = '"+(@WA_POINTS-.@reste)+"' WHERE `char_id` = "+getcharid(0)+"");}
mes "^00af00You got "+.@div+" Wicked Coin(s).^000000";}}
Question
Radian
Hey guys, while I was checking a script i noticed that I cant exchange my points it keeps saying this part mes "You don't have enough points to exchange.";
This is the part of the script, I got 15 points from my mysql.
No map error at all.
Link to comment
Share on other sites
3 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.