CLEO Help samp add_message_to_chat

CLEO related
Status
Not open for further replies.

SiraBots

Active member
Joined
Aug 11, 2013
Messages
50
Reaction score
0
Location
Norway
Hi,
I have been trying to fix this bug in very long time but I can't do it, I have tried so much. I want my script to set HP to 98 and also say a text "Hello" but it doesn't do that, it sets the HP but the text is blank, there's an empty line that shows up, like this:

Code:
[18:12:41] 

[18:12:42] 

[18:12:42] 

[18:12:42]

Here's my code:

Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0662: printstring "HP" 

:NONAME_35
wait 0 
if and
   Player.Defined($PLAYER_ACTOR)
0AB0:   key_pressed 36 
else_jump @NONAME_35 
wait 10 
Actor.Health($PLAYER_ACTOR) = 98
0AF8: samp add_message_to_chat "Hello" color 0xCC0000  
wait 2000 
jump @NONAME_35

Anyone know what's the problem?
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
04ED: load_animation "CRACK"

0605: actor $PLAYER_ACTOR perform_animation "crckdeth2" IFP "CRACK" framedelta 4.0 loop 0 lockX 0 lockY 0 lockF 0 time -1
 

SiraBots

Active member
Joined
Aug 11, 2013
Messages
50
Reaction score
0
Location
Norway
TH3RM4L link said:
04ED: load_animation "CRACK"

0605: actor $PLAYER_ACTOR perform_animation "crckdeth2" IFP "CRACK" framedelta 4.0 loop 0 lockX 0 lockY 0 lockF 0 time -1

Does it require Samfuncs?
 
Status
Not open for further replies.
Top