SA-MP Forums Archive
Delete something from array - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Delete something from array (/showthread.php?tid=572218)



Delete something from array - Banditukas - 26.04.2015

Hi,

I want delete something from array. Like:

Код:
new DeckTextdrw[10][] = {

"Hello0",
"Hello1",
"Hello2",
"Hello3",
"Hello4",
"Hello5",
"Hello6",
"Hello7",
"Hello8",
"Hello9",
 };
Now here is size 10 if i do sizeof(DeckTextdrw), but how now do i want to delete any of it for ex: Hello8. And i want that checking will be like array will be


Код:
new DeckTextdrw[9][] = {

"Hello0",
"Hello1",
"Hello2",
"Hello3",
"Hello4",
"Hello5",
"Hello6",
"Hello7",
"Hello9",
 };
Without Hello8.


Re: Delete something from array - Konstantinos - 26.04.2015

It would be only possible with dynamic memory: y_malloc or Memory access plugin.


Re: Delete something from array - Banditukas - 26.04.2015

How do it with y_malloc ?


Re: Delete something from array - Konstantinos - 26.04.2015

I haven't used any of them so I'm not aware. You can find about y_malloc here: http://web.archive.org/web/201404201...ad.php?t=58827