02.02.2015, 15:34
(
Последний раз редактировалось IstuntmanI; 04.02.2015 в 16:27.
)
Quote:
Looks like a memory corruption problem as far as I can see (stack I think, I'm no expert on this but I've experienced that problem a few times). Basically, you've probably got a native function somewhere writing out of an array's bounds and native functions don't raise errors or do any range checking if they are out of bounds annoyingly. I'm not too certain on how to debug it, I just got lucky when I had this issue and managed to find the line that caused it (it was strcat writing to a 16 cell local array with a 32 cell input, those extra 16 cells were being written into somewhere else in memory and screwing up an instruction call or something).
|
@Gamer_Z: It has nothing to do with that, it is doing like that in every callback (OnUnoccupiedVehicleUpdate) call on my test server and I am the only one connected.
EDIT:
It looks like it was crashing and giving invalid instructions because I used "#if !defined" for some functions which were created as "stock" . Pretty weird. I'm happy that I fixed it.