CLEO Help Cleo keeps crashing, need a little help

CLEO related
Status
Not open for further replies.

janpers

New member
Joined
Jan 25, 2017
Messages
2
Reaction score
0
Hey, I hope you are having a nice day, I'm not. So I am doing a super simple cleo, but I'm stuck at last thing.

This opcode crashes my game everytime

Code:
0471:   actor $PLAYER_ACTOR near_object_in_rectangle $18880 radius 50.0 50.0 sphere 0

Full code:

Code:
{$CLEO}
0000:
thread 'auto'
wait 5000
 
:LAUKIMAS
wait 0
if
0AB0: 113
jf @LAUKIMAS
jump @armasinoje
 
:armasinoje
wait 0
IF
00DF:   actor $PLAYER_ACTOR driving
jf @NEMASINOJE
jump @detektinimas
 
:NEMASINOJE
wait 0
0AD1: show_formatted_text_highpriority "Turite vairuoti masina" time 2000
wait 1000
jump @LAUKIMAS
 
:detektinimas
wait 0
IF
0471:   actor $PLAYER_ACTOR near_object_in_rectangle $18880 radius 50.0 50.0 sphere 0
jf @armasinoje
0AF9: "/autopilotas"
wait 5000
0AF9: "/autopilotas"
jump @armasinoje

If you can help, please write down below. Thanks, have a nice day ;)
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
Polaroid said:
you're missing an object handle ($18880)

I thought same, until I realised this global variable goes for model ID, think we need @springfield here
By logic you need an object handle, but since I saw some excuses in SB\GTA SA modding I'm not sure about this one
 

janpers

New member
Joined
Jan 25, 2017
Messages
2
Reaction score
0
Polaroid said:
you're missing an object handle ($18880)

I don't quite understand. I want the script to do something when I'm near that object in a car (object id 18880, it's a speed camera).
 
Status
Not open for further replies.
Top