Results 1 to 10 of 16

Thread: Staff Bar Script

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Quote Originally Posted by The Doctor View Post

    Care to explain why?

    I figured that out as soon as I put some boots in the bar :P
    Using array elements and their indexes in a certain variable is a bad idea, because, let's say you add something in the beginning of the array, this will completely change the values set for the others.
    For example:
    Let's say you have 1 is exit, 2 is staff stick
    Then you add staff boomerang as 1, what will happen is: 1 is staff boomerang, 2 is exit, 3 is staff stick.
    And once triggering the server, it will trigger 1, this means it will call the first parameter which is exit (unless you rechange all variables on serverside everytime you add something).
    It's a bit messed up, it's just easier to use array elements and not indexes.
    Last edited by John; 07-28-2013 at 03:35 PM.
    -Johnaudi

Tags for this Thread

Posting Permissions

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