CLEO Help little help

CLEO related
Status
Not open for further replies.

vayneprime

New member
Joined
Jan 16, 2020
Messages
4
Reaction score
0
Location
Serbia
i decompiled checkpoint syncer.cs. i changed the key for activation, but I cant compile it now.

i get this error when i try to compile:

C:
Unknown directive call @is_cp_active 0.

i have SB Data folder in /data/sa/ and sampfuncs.asi in GTA folder, what is wrong?

my code:

Code:
{$CLEO}

thread "fak"

:ct
wait 0
if
    0AB0: 109
then   
if     
    call @is_cp_active 0
then
    call @get_cp_pos 0 1@ 2@ 3@
    if
        044B: $PLAYER_ACTOR
    then
        call @SendOnFootDataSync 3 1@ 2@ 3@
    else       
        call @SendInCarDataSync 3 1@ 2@ 3@
    end   
end
end
jump @ct
    

:is_cp_active
0AA2: 0@ = loadlib "samp.dll"
0A8E: 1@ = 0@ + 0x21A10C
0A8D: 1@ = readMem 1@ sz 4 vp 0
1@ += 0x24
0A8D: 1@ = readMem 1@ sz 4 vp 0
IF 1@ == TRUE
THEN 0485:  return_true
ELSE 059A:  return_false
END
0AA3: freelib 0@
0AB2: ret 0

:get_cp_pos
0AA2: 0@ = loadlib "samp.dll"
0A8E: 1@ = 0@ + 0x21A10C
0A8D: 1@ = readMem 1@ sz 4 vp 0
1@ += 0xC
0A8D: 2@ = readMem 1@ sz 4 vp 0
1@ += 0x4
0A8D: 3@ = readMem 1@ sz 4 vp 0
1@ += 0x4
0A8D: 4@ = readMem 1@ sz 4 vp 0
0AA3: freelib 0@
0AB2: ret 3 2@ 3@ 4@

:SendOnFootDataSync
0B2B: 3@ = $PLAYER_ACTOR
0BBA: 3@ 4@
alloc 4@ 68
0C0D: 4@ 6 4 = 0@
0C0D: 4@ 10 4 = 1@
0C0D: 4@ 14 4 = 2@
0BC0: 4@
free 4@
ret 0

:SendInCarDataSync                 
3@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
3@ = SAMP.GetPlayerStruct(3@)
3@ += 170
0AC8: 4@ = allocate_memory_size 63
0C10: memcpy destination 4@ source 3@ size 63
0C0D: struct 4@ offset 24 size 4 = 0@
0C0D: struct 4@ offset 28 size 4 = 1@
0C0D: struct 4@ offset 32 size 4 = 2@
0B3D: raknet 5@ = new_bit_stream
RakNet.Write(5@, 200, BS_TYPE_BYTE, 1)
RakNet.Write(5@, 4@, BS_TYPE_ARRAY, 63)
0B8B: raknet send bit_stream 5@                 
0B3E: raknet delete_bit_stream 5@
0AC9: 4@
0AB2: ret 0
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,719
Solutions
1
Reaction score
111
You don't have the "SAMPFUNCS" SB data though clearly, you say you have the "data" so lemme guess you just have the "data" folder which everyone with sannybuilder will have doesn't mean you have the sfuncs "data" so get them from here.
http://ugbase.eu/index.php?threads/sampfuncs-5-3-0-3-7.14796/
Installation instructions in this thread: http://ugbase.eu/index.php?threads/official-everything-about-cleo-and-sampfunctions.16771/
& this thread: http://ugbase.eu/index.php?threads/solution-unknown-directive-error-sanny-builder.16962/
If even then it doesn't work then just change "CALL" to "0AB1:"
 

vayneprime

New member
Joined
Jan 16, 2020
Messages
4
Reaction score
0
Location
Serbia
You don't have the "SAMPFUNCS" SB data though clearly, you say you have the "data" so lemme guess you just have the "data" folder which everyone with sannybuilder will have doesn't mean you have the sfuncs "data" so get them from here.
http://ugbase.eu/index.php?threads/sampfuncs-5-3-0-3-7.14796/
Installation instructions in this thread: http://ugbase.eu/index.php?threads/official-everything-about-cleo-and-sampfunctions.16771/
& this thread: http://ugbase.eu/index.php?threads/solution-unknown-directive-error-sanny-builder.16962/
If even then it doesn't work then just change "CALL" to "0AB1:"

thank you so much bro :D i moved the whole folder SB data into /data/sa, i did not replace the files from sb data folder with files in /data/sa. dumb mistake, works now! cheers bro
 
Status
Not open for further replies.
Top