CLEO Help question

CLEO related
Status
Not open for further replies.

der_Hahn

Member
Joined
Jul 3, 2015
Messages
11
Reaction score
0
I have 2 scripts. I want to use 0AF9: samp say_msg but i can't.. Look in pictures.
Code:
{$CLEO}

thread "99armor"

repeat
wait 0
until SAMP.Available()

0B34: "armura" @MAIN_SYSTEM

while true
wait 0
end


:MAIN_SYSTEM
wait 0
035F: $PLAYER_ACTOR += 100
035F: $PLAYER_ACTOR += -1
0AF8: "[>>] Armour refilled!" 12566463
SAMP.CmdRet()
Everything is fine in first code, but now if i use 0AF9: samp say_msg "/armura" it says "Invalid command, etc...". Please help me if it's possible.
Code:
{$CLEO}

thread "3142"

repeat
wait 0
until SAMP.Available()

0B34: "armura31" @MAIN_SYSTEM

while true
wait 0
end


:MAIN_SYSTEM
wait 0
0AF8: samp add_message_to_chat "{FFFFFF}It's working" color 0xFFFFFF
0AF9: samp say_msg "/armura"
SAMP.CmdRet()

cxTqfpe.png

vQLBGBU.png

Ay1dDwi.png

Iv8Dn0Y.png
 

Hidend

Expert
Joined
Mar 4, 2013
Messages
660
Reaction score
50
it works, idk wtf are you trying to do but if you see image, it says invalid command, so you write that message... 0af9 is for write/say something in chat, it doesn't create a command (like 0B34 does)
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,492
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
I dont understand why you need 2 cleo scripts for one command  :imoverit:
And i really dont know what you want

Code:
{$CLEO .cs}
0000:


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY
0B34: "armura" @armura
0B34: "armura31" @armura31




WHILE TRUE
    WAIT 0
END

:armura31
0AF8: samp add_message_to_chat "{FFFFFF}It's working" color 0xFFFFFF
0AF9: samp say_msg "/armura"
0B43: samp cmd_ret


:armura
035F: $PLAYER_ACTOR += 100
035F: $PLAYER_ACTOR += -1
0AF8: "[>>] Armour refilled!" 12566463
0B43: samp cmd_ret
 
Status
Not open for further replies.
Top