CLEO Help Creating CLEO and not working.

CLEO related
Status
Not open for further replies.

bigben07

Active member
Joined
Nov 10, 2013
Messages
140
Reaction score
0
Here's my script so far. (I'm REALLY new at this so If you see errors in the script please help me correct them)


Code:
{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'Dicerr' 
0662: NOP "Lemans Do Not Die" 


:MAIN
wait 0
if and
0256: player $PLAYER_CHAR defined
056D: actor $PLAYER_ACTOR defined
044B: actor $PLAYER_ACTOR on_foot
0AB0:   key_pressed 122 //F11
else_jump @MAIN
0AF9: samp say_msg "{FF8000}** {C2A2DA}JL rolls a dice that lands on 5."
wait 5000
jump @MAIN


Here's the crash

Code:
[20:45:24] {FFFFFF}SA-MP {B9C9BF}0.3x {FFFFFF}Started

[20:45:25] > ================================== <

[20:45:25]  

[20:45:25] > SAMPFUNCS v2.6 for 0.3x SUCCESSFULLY LOADED!

[20:45:25] > Authors: FYP, MogAika

[20:45:25]  

[20:45:25] > BlastHack © 2013

[20:45:25] > Website: http://blasthack.net

[20:45:25]  

[20:45:25] > ================================== <

[20:45:27] Connecting to 198.24.160.69:7782...

[20:45:31] Warning(s007): Exception 0xC0000005 at 0x0

[20:45:31] Warning(s007): Exception 0xC0000005 at 0x0

[20:45:31] Warning(s007): Exception 0xC0000005 at 0x0

[20:45:31] Warning(s007): Exception 0xC0000005 at 0x0

[20:45:31] Warning(s007): Exception 0xC0000005 at 0x0

[20:45:31] Warning(s007): Exception 0xC0000005 at 0x0

[20:45:31] Warning(s007): Exception 0xC0000005 at 0x0

[20:45:31] Warning(s007): Exception 0xC0000005 at 0x0

[20:45:31] Warning(s007): Exception 0xC0000005 at 0x0

[20:45:31] Warning(s007): Exception 0xC0000005 at 0x0

[20:45:31] Warning(s007): Exception 0xC0000005 at 0x0

Yes, I have sampfuncs 2.6 and I have other scripts that call for samp funcs.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Code:
{$CLEO}
0000:

if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end

while not SAMP.Available()
    wait 100
end

while true
wait 0
    if and 
        0AB0: 122 //F11
        0256: player $PLAYER_CHAR defined
        056D: actor $PLAYER_ACTOR defined
        044B: actor $PLAYER_ACTOR on_foot
    then
        0AF9: samp say_msg "** JL rolls a dice that lands on 5."
        wait 5000
    end
end

0AF9 won't work with colors, you can't send a colored message in chat.
0AF8 adds a message to the chat(colors supported) which only you can see.
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,732
Solutions
2
Reaction score
117
i dont even know if it works like that you need this opcode.

0AF8: samp add_message_to_chat "%d + %d = %d" color 0xFF61BB 4 6 10

else it will just make you say "{FF8000}** {C2A2DA}JL rolls a dice that lands on 5." and people will be like Lol wat?

And btw you cant really make a fake dice thing that sync's
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
i dont even know if it works like that you need this opcode.

0AF8: samp add_message_to_chat "%d + %d = %d" color 0xFF61BB 4 6 10

else it will just make you say "{FF8000}** {C2A2DA}JL rolls a dice that lands on 5." and people will be like Lol wat?

And btw you cant really make a fake dice thing that sync's

0AF8 opcode will be visible only in your screen :xD: :xD::xD:
and when you use samp say_msg it will make it public, but then it will put the text with your name :troll: :troll::troll: Like, imagine my nickname is xzytro, and it will look like this :
xzytro : xzytro rolls a dice that lands on 5.
which will look pretty stupid L0l

But anyway, nice to see that some people are starting to make cleo files step by step ;) ;);)
 
Status
Not open for further replies.
Top