"destroying" an array row.
#1

Well, I'll try to explain myself properly. I'm asking if it's possible to :

Lets say I got this array. (example: i'm not really doing this).

new PlayerStuff[MAX_PLAYERS]

PlayerStuff[0] = "Money";
PlayerStuff[1] = "Weapons";
PlayerStuff[3] = "Drugs";
PlayerStuff[4] = "Other";
etc...

Now, I want for example "weapons" removed, but I want this as result :

PlayerStuff[0] = "Money";
PlayerStuff[1] = "Drugs";
PlayerStuff[3] = "Other";
etc..

So, I actually want to delete the content of the array-row, and reduce the index of the follow element rows by 1.

Well if this is possible (For all the stuff in my array, there is a txt file, I need that txt file removed (dini_remove) but, besides that, i need the following txt names also reduced by 1.) names of the txt files are just like 1,2,3,4 etc.

Sorry, I couldn't really explain myself properly, I hope you get the idea. Thanks for any feedback.
Reply


Messages In This Thread
"destroying" an array row. - by JamesS - 24.02.2013, 14:42
Re: "destroying" an array row. - by Vince - 24.02.2013, 14:57
Re: "destroying" an array row. - by JamesS - 24.02.2013, 14:59
Re: "destroying" an array row. - by Misiur - 24.02.2013, 15:06
Re: "destroying" an array row. - by Vince - 24.02.2013, 15:07
Re: "destroying" an array row. - by JamesS - 24.02.2013, 15:09
Re: "destroying" an array row. - by LarzI - 24.02.2013, 15:12
Re: "destroying" an array row. - by JamesS - 24.02.2013, 15:16
Re: "destroying" an array row. - by Misiur - 24.02.2013, 15:27
Re: "destroying" an array row. - by AndreT - 24.02.2013, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)