Jump to content
  • 0

[SOLVED]Moving Arrays???


pajodex

Question


  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

Hi, 
I hope I can get my point right, How do I move arrays? Sample

Arrays: .player[0], .player[1], .player[2], .player[3]

How do I remove arrays 1 and 2 then move arrays 3 and 4 to arrays 1 and 2?

New Array: .player[0] --- from prev array player [2], player[1] --- from prev array player [3]

Someone help :( Thaanks a lot!

 

EDIT: Forgot about deletearray. Please ignore me XD

Edited by pajodex
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   345
  • Joined:  02/26/12
  • Last Seen:  

deletearray.player[0],2;

will remove next

  • .player[0] = 0;
  • .player[1] = 1;
  • .player[2] = 2;
  • .player[3] = 3;
  • .player[4] = 4;

You will get

  • .player[0] = 2;
  • .player[1] = 3;
  • .player[2] = 4;
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...