CLEO Help The fastest way to start a script

CLEO related
Status
Not open for further replies.

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
294
Reaction score
36
Location
Srbija
Hi, i need the fastest way to start a cleo script i have this one

Code:
{$CLEO .cs}
//----------------Test---------------------

0000: NOP

Thread "Test"

//Whait samp start
Repeat
     Wait 0 //it freez if no whait
Until 0AFA: //Short version of samp.Available()
//Creating cmd

0B34: samp register_client_command "Test1" to_label @Test
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,145
Solutions
5
Reaction score
888
Location
Lithuania
With Sampfuncs
PHP:
{$CLEO .cs}

0000: NOP

repeat
wait 0
until 0AFA:

WHILE TRUE
WAIT 0
// Do something...
END

without sampfuncs
PHP:
{$CLEO .cs}

0000: NOP

wait 8500

WHILE TRUE
WAIT 0
// Do something...
END
 

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
294
Reaction score
36
Location
Srbija
With Sampfuncs
PHP:
{$CLEO .cs}

0000: NOP

repeat
wait 0
until 0AFA:

WHILE TRUE
WAIT 0
// Do something...
END

without sampfuncs
PHP:
{$CLEO .cs}

0000: NOP

wait 8500

WHILE TRUE
WAIT 0
// Do something...
END
Thanks but i dont understand for what some people use Tread "Something"?
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,145
Solutions
5
Reaction score
888
Location
Lithuania
Thanks but i dont understand for what some people use Tread "Something"?
To renamed default labes or just give name for your cleo
If do like : Thread "Parazitas" then all lines after decompile starts like:
@Parazitas_12
Jf @Parazitas_12
 
Status
Not open for further replies.
Top