#1 15-07-2010 13:37

gtamgthedevelopers
Registered: 15-07-2010
Posts: 3

Can not release model

I have created this simple code. This run properly except after killing both the char and destroying the bike in the game the models are not released. I have teleported to even in the countryside and then come back, but it stayed there. So how can I release them?
I have seen that if models are not released then after creating a lots of them there remains no vehicles in San Andreas. And if I dont stop creating then after some time the game crashes.Why is this happened?

Here is the code 

{$Cleo}
0000:
0A95: enable_thread_saving
 
:CHECK_00
0001: wait 1000 ms 
023C: request_special_actor 'SMOKE' as 1
023C: request_special_actor 'TORINO' as 2
0247: load_model #PCJ600 
00D6: if  and
023D:   special_actor 1 loaded 
023D:   special_actor 2 loaded
0248:   model #PCJ600 available
004D: jump_if_false @CHECK_00

00A5: 0@ = create_car #PCJ600 at 2498.957 -1668.9901 13.3481 
0129: 3@ = create_actor_pedtype 8 model #SPECIAL02 in_car 0@ driverseat 
01C8: 2@ = create_actor_pedtype 8 model #SPECIAL01 in_car 0@ passenger_seat 0 

0296: unload_special_actor 1 
0296: unload_special_actor 2
0249: release_model #PCJ600 

0A93: end_custom_thread

Offline

#2 15-07-2010 13:55

TheSiggi
Registered: 23-06-2010
Posts: 3

Re: Can not release model

you released the modles, but you didn't rmoved their referneces:

01c2 for actors and 01c3 for cars

Offline

Board footer

Powered by FluxBB