CLEO Help How to compile this script?

CLEO related
Status
Not open for further replies.

Petricko

Member
Joined
Dec 21, 2014
Messages
23
Reaction score
0
Can someone please explain it how to compile this script to .CS file. When I put it in Sanny Builder and compile I get eror : Unknown opcode 0B4C .
Code:
while true
wait 0
if 0AB0: 49 //Key
then
    repeat
    wait 100
    0AF9: samp say_msg "/buy"
    until 0B4C: samp is_dialog_active -1 
    0B49: samp set_current_dialog_list_item 4 // 4th option
    0B47: samp close_current_dialog_with_button 1 //Ok/Enter
end
end
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
It compiled fine to me

Code:
{$CLEO .cs}
0000:NOP
while true
wait 0
if 0AB0: 49 //Key
then
    repeat
    wait 100
    0AF9: samp say_msg "/buy"
    until 0B4C: samp is_dialog_active -1 
    0B49: samp set_current_dialog_list_item 4 // 4th option
    0B47: samp close_current_dialog_with_button 1 //Ok/Enter
end
end
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Update ur Sanny Builder to the latest one. Compiles fine without any errors.
 

Attachments

  • cleo.cs
    17.5 KB · Views: 32
Status
Not open for further replies.
Top