Hey guys, Im having trouble with this and I've been trying to fix it and make it work as what i wanted, but i failed.
On this part, what I want to achieve is to check each player if they have the specific potion that is restricted while entering the area.
for ( .@i = 0; .@i < getarraysize(.Potions); .@i++ ) {
if(checkcart()) {
if(cartcountitem(.Potions[.@i]) >= 1){
mes "Please remove the restricted items from your inventory and cart.";
close;
}
} else if(countitem(.Potions[.@i]) >= 1) {
mes "Please remove the restricted items from your inventory and cart.";
close;
}
}
So far the result is when Player have a cart its working but it will ignore the inventory check.
Question
Radian
Hey guys, Im having trouble with this and I've been trying to fix it and make it work as what i wanted, but i failed.
On this part, what I want to achieve is to check each player if they have the specific potion that is restricted while entering the area.
So far the result is when Player have a cart its working but it will ignore the inventory check.
Link to comment
Share on other sites
1 answer 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.