CLEO Help CLEO Problem

CLEO related
Status
Not open for further replies.

0xf0rd

Active member
Joined
Jun 20, 2014
Messages
68
Reaction score
1
Hello,

I am trying to compile a simple code that has a raknet bit_stream but it can't compile and it says
Code:
Couldn''t load includes/RakNetDefines.txt.

What is RakNetDefines.txt and why it cant load it and where should I get it from to make the code compile?

Here is the code
Code:
{$CLEO .cs}
{$INCLUDE includes/RakNetDefines.txt}
//-------------MAIN---------------
thread "FAKESPEED"
0662: NOP "FAKESPEED"

:SendIncarFakeSpeed
4@ = SAMP.GetSAMPPlayerIDByActorHandle ($ PLAYER_ACTOR)
4@ = SAMP.GetPlayerStruct (@4)
4@ +=201 // local inCarData
0AC8: 5@ = allocate_memory_size 63
0C10: memcpy destination 5@ source 4@ size 63
0C0D: struct 5@ offset 0 size 2 = 3@
0C0D: struct 5@ offset 36 size 4 = 0@
0C0D: struct 5@ offset 40 size 4 = 1@
0C0D: struct 5@ offset 44 size 4 = 2@
0B3D: raknet 6@ = new_bit_stream
0B40: raknet bit_stream 6@ write PACKET_VEHICLE_SYNC type BS_TYPE_BYTE size 1
0B40: raknet bit_stream 6@ write 5@ type BS_TYPE_ARRAY size 63
0B8B: raknet send bit_stream 6@
0B3E: raknet delete_bit_stream 6@
0AC9: free_allocated_memory 5@
0AB2: ret 0
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Your include files should be in "Sanny Builder 3\data\sa\..."(for GTA:SA), or in the same folder as the script source/file.
So.. it's pretty straightforward, you're either missing the file, inputed a wrong path, or file name is wrong.

If RakNetDefines.txt is from SAMPFUNCS, then is deprecated, include the 'SF' file that comes with the newer versions.
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
http://ugbase.eu/snippets/sendincarfakespeedsync/

Use that and you won't need to include anything.
 

0xf0rd

Active member
Joined
Jun 20, 2014
Messages
68
Reaction score
1
Thank you, thats what I was looking for. I replaced RakNetDefines.txt with this line
Code:
{$Include data/sa/SF}
and I can now compile :)

springfield link said:
Your include files should be in "Sanny Builder 3\data\sa\..."(for GTA:SA), or in the same folder as the script source/file.
So.. it's pretty straightforward, you're either missing the file, inputed a wrong path, or file name is wrong.

If RakNetDefines.txt is from SAMPFUNCS, then is deprecated, include the 'SF' file that comes with the newer versions.
 
Status
Not open for further replies.
Top