CLEO Help this opecode not working help

CLEO related
Status
Not open for further replies.

SuperUser32

Member
Joined
Aug 20, 2019
Messages
7
Reaction score
0
hello guys i just want to send edit request, but nothing is happening with it opecode 0BCD:
after using the script the object still has its movement axis buttons on and dont get saved on server
is this a samp func bug ? i have never seen anyone using this opecode i pasted this opecode into our search box and no results

is there any other way ? ,
what i need exactly is to the script to press the save button of the edit object,
is that posible through memory hacks ? pls help guys, im a bit newbie

code
PHP:
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
thread 'xdxd'

:key         
wait 0
if key_down 101
jf @key
jump @ob

:ob
wait 0
00A0: store_actor $PLAYER_ACTOR position_to $X $Y $Z
if
0AE3: 15@ = random_object_near_point $X $Y $Z in_radius 5.0 find_next 0 //IF and SET
jf @not
01BB: store_object 15@ position_to $ox $oy 20@
20@ += 10.0
01BC: put_object 15@ at $ox $oy 20@
0BCD: samp send_edit_object playerobject 0 object 15@ response 1 pos $ox $oy 20@  rotation 0 90 0
jump @key
        
        
:not
wait 0
print "NO OBJECTS" 1000
jump @key
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,719
Solutions
1
Reaction score
111
You can start by not using global vars as they have a possabillity of being interfered with, and seen as I nor probably anyone knows about samp edit objects why don't you debug your code? Add drawboxes and stuff to make sure you using the correct object "ID" you're actually using the object handle here when you need to use the ID as it states in the opcode database which makes sense as it's a samp specific item so requires its samp unique identifier, check opcode search as there are opcodes for getting handles from IDs and vice versa etc.
https://blast.hk/wiki/opcodes:0bcd
 
Status
Not open for further replies.
Top