INI stock causes "Unknown Command" message
#4

Quote:
Originally Posted by Nyitz
Посмотреть сообщение
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.
Right, In that case, try using print() within 'SaveTuningToFile' between lines, try to find where exactly in that function it fails. I suspect it is something to do with overflow/underflow in PrivCarInfo.

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]).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)