CLEO Help Help

CLEO related
Status
Not open for further replies.

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
There is no difference. 

It is used at the beginning of script like:
Code:
Noname_0
Wait 0
PLAYER_CHAR DEFINED // OR ACTOR
JF @Label
[SIZE=7][/SIZE]
:Label
Jump @Noname_0

Or at many opcodes / functions :).
 

SpRoXx

Member
Joined
Oct 29, 2016
Messages
23
Reaction score
1
Aight guys thank you very much , i am just learning cleo and i need help


springfield said:
ACTOR is for the pyshical ped, CHAR is for the player info.

What do you mean by saying physical ped, you mean it's me ? i mean when i want to heal my self, i do CHAR or ACTOR?
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
You can try the next opcode:
Code:
0BCB: samp send_give_damage playerid $PLAYER_ACTOR damage -100 weapon 0 bodypart 3@

 or
Code:
0223: set_actor $PLAYER_ACTOR health_to xY@


And about $ACTOR & CHAR, I just think you have to use $ACTOR when you want to make an condition or smt like that and $CHAR at the beginning script
Code:
$PLAYER_CHAR defined jf @Main

@Springefield, what's difference between 0xCOLOR and 0xFFCOLOR ?
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
You can try the next opcode:
Code:
0BCB: samp send_give_damage playerid $PLAYER_ACTOR damage -100 weapon 0 bodypart 3@

 or
Code:
0223: set_actor $PLAYER_ACTOR health_to xY@


And about $ACTOR & CHAR, I just think you have to use $ACTOR when you want to make an condition or smt like that and $CHAR at the beginning script
Code:
$PLAYER_CHAR defined jf @Main

@Springefield, what's difference between 0xCOLOR and 0xFFCOLOR ?
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
doroftel said:
@Springefield, what's difference between 0xCOLOR and 0xFFCOLOR ?

COLOR is probably ARGB, and the FFCOLOR is probably ARGB where is Alpha constant 255, so you only have to pass RGB, dunno really, just my thoughts
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
SpRoXx said:
What do you mean by saying physical ped, you mean it's me ? i mean when i want to heal my self, i do CHAR or ACTOR?

The actual player, the one you move with WASD. The ACTOR contains data like weapons, health, armor, skin etc. The CHAR contains player info, like money, stats, upgrades, skills, missions, achievements etc.

Example:
Code:
010B: 4@ = player $PLAYER_CHAR money //correct
010B: 4@ = player $PLAYER_ACTOR money //incorrect

0226: 4@ = actor $PLAYER_CHAR health //incorrect
0226: 4@ = actor $PLAYER_ACTOR health //correct

doroftel said:
@Springefield, what's difference between 0xCOLOR and 0xFFCOLOR ?

Depends on the color format, ARGB, RGB, RGBA etc. 
0xFFCOLOR represents that the first byte of that color is 255, if it's alpha or blue or red depends on the color format, which is not specified.
 

SpRoXx

Member
Joined
Oct 29, 2016
Messages
23
Reaction score
1
springfield said:
SpRoXx said:
What do you mean by saying physical ped, you mean it's me ? i mean when i want to heal my self, i do CHAR or ACTOR?

The actual player, the one you move with WASD. The ACTOR contains data like weapons, health, armor, skin etc. The CHAR contains player info, like money, stats, upgrades, skills, missions, achievements etc.

Example:
Code:
010B: 4@ = player $PLAYER_CHAR money //correct
010B: 4@ = player $PLAYER_ACTOR money //incorrect

0226: 4@ = actor $PLAYER_CHAR health //incorrect
0226: 4@ = actor $PLAYER_ACTOR health //correct

doroftel said:
@Springefield, what's difference between 0xCOLOR and 0xFFCOLOR ?

Depends on the color format, ARGB, RGB, RGBA etc. 
0xFFCOLOR represents that the first byte of that color is 255, if it's alpha or blue or red depends on the color format, which is not specified.
Thanks for helping guys
 
Status
Not open for further replies.
Top