19.04.2017, 10:01
(
Последний раз редактировалось [WSF]ThA_Devil; 19.04.2017 в 10:45.
)
Quote:
Earlier I've put some Client Messages in it, before and after the "suspicious" lines, and it seemed that nothing was executed after calling SaveTuningToFile.
|
Try using crashdetect plugin to get more information of what's exactly going wrong.
I know this is irrelevant but the 'SaveTuning' could be considerably more optimised by only using one loop and if statements instead of however many loops you have there.
And why are you creating arrays of size of 1 like this one? new spoiler[20][0];? That is just wasteful and shouldn't be done, as you can easily do 'new spoiler[20];' which will do the same thing, except not wasting memory. if(componentid == spoiler[s][0]) would turn into if(componentid == spoiler[s]).