Thread: interface help(serverside)

Results 1 to 5 of 5
  1. #1 interface help(serverside) 
    Registered Member

    Join Date
    Nov 2008
    Age
    29
    Posts
    994
    Thanks given
    1
    Thanks received
    3
    Rep Power
    104
    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");
    }
    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?

    (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)
    Develop VR games in Unity now
    Reply With Quote  
     

  2. #2  
    crypt or blood
    Guest
    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) {
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Nov 2008
    Age
    29
    Posts
    994
    Thanks given
    1
    Thanks received
    3
    Rep Power
    104
    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?
    Develop VR games in Unity now
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jan 2007
    Posts
    260
    Thanks given
    3
    Thanks received
    5
    Rep Power
    0
    Quote Originally Posted by live in sin View Post
    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?
    Don't feel dumb, I make really simple mistakes all the time. All you can do is sit back and laugh at yourself when you figure the problem out, I find that eating a sometimes help me see the errors of my way..
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Nov 2008
    Age
    29
    Posts
    994
    Thanks given
    1
    Thanks received
    3
    Rep Power
    104
    :cookie:'s are better
    Develop VR games in Unity now
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •