Author Topic: [Solved]How to destroy the contents of an array?  (Read 871 times)

0 Members and 1 Guest are viewing this topic.

Offline frosty

  • Flagrunner
  • ****
  • Posts: 601
  • Uber Desert Eagle ^^
[Solved]How to destroy the contents of an array?
« on: August 12, 2011, 07:35:36 pm »
title says it all, im facing bugs on map change cuz i dont know how to clear my items array

what would be one of the methods to do this?
« Last Edit: August 16, 2011, 01:25:14 am by frosty »
check out my server! click here

If at first you don't succeed, Improvise! :D

Offline dnmr

  • Camper
  • ***
  • Posts: 315
  • emotionally handicapped
Re: How to destroy the contents of an array?
« Reply #1 on: August 13, 2011, 04:29:54 am »
for i := arrmin to arrmax do array := null ?

Offline frosty

  • Flagrunner
  • ****
  • Posts: 601
  • Uber Desert Eagle ^^
Re: How to destroy the contents of an array?
« Reply #2 on: August 16, 2011, 01:24:33 am »
Doh! tx dnmr :D

somehow i overlooked doing that
check out my server! click here

If at first you don't succeed, Improvise! :D

Offline tk

  • Soldier
  • **
  • Posts: 235
Re: [Solved]How to destroy the contents of an array?
« Reply #3 on: August 16, 2011, 02:22:25 am »
If it's a dynamic array just do array := [];

Offline frosty

  • Flagrunner
  • ****
  • Posts: 601
  • Uber Desert Eagle ^^
Re: [Solved]How to destroy the contents of an array?
« Reply #4 on: August 19, 2011, 10:29:56 pm »
tx tk that makes it even easier :D
check out my server! click here

If at first you don't succeed, Improvise! :D