23.01.2014, 16:25
So I've been using fairly hefty global arrays based off enums, now my problem is, they seem to be initialized and using space from the second I start the script, before I even reference them, is this normal?
I also would like to use an object called Vehicles[2000] and then dispose of it after I have finished using it, now my problem is I can't keep it in the scope of a function as it's triggered by different commands.
Server starts
Array exists globally
Array is used here
Array is used there
I'd like to throw it away now
I'd like to reference it again, does it still exist? do I need to create it?
Is this possible in PAWN? I've taken quite a long break and have been fiddling with other languages and have become quite accustom to disposing of objects and creating them again when needed, often object orientated in the form of classes.
I also would like to use an object called Vehicles[2000] and then dispose of it after I have finished using it, now my problem is I can't keep it in the scope of a function as it's triggered by different commands.
Server starts
Array exists globally
Array is used here
Array is used there
I'd like to throw it away now
I'd like to reference it again, does it still exist? do I need to create it?
Is this possible in PAWN? I've taken quite a long break and have been fiddling with other languages and have become quite accustom to disposing of objects and creating them again when needed, often object orientated in the form of classes.