if(pcPoints <= 10) {
thats saying if you have less than or equal too. should be reversed to make it if you have more than 10. remember always use just a > or < where you can, so do it like
if(pcPoints > 9) {
|
when i use that code it subtracts the pest points but when i try again it just keeps goin g, what did i do wrong?Code:case 73079: if(pcPoints <= 10) { addSkillXP(1000, 2); pcPoints -=10; closeInterface(); sM("you have gained 1k xp"); savemoreinfo(); } else { sM("you dont have enough pest points"); }
(say i have 10 pest points, i do it once now i have zero, i do it again it subtracts another 10 so its -10)
if(pcPoints <= 10) {
thats saying if you have less than or equal too. should be reversed to make it if you have more than 10. remember always use just a > or < where you can, so do it like
if(pcPoints > 9) {
wow i feel real dumb now ...
---------- Post added at 04:17 AM ---------- Previous post was at 04:14 AM ----------
would you happen to know the void knight npc id, and the ones that walk out side of the actual minigame?
:cookie:'s are better
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |