Noname_0
Wait 0
PLAYER_CHAR DEFINED // OR ACTOR
JF @Label
[SIZE=7][/SIZE]
:Label
Jump @Noname_0
springfield said:ACTOR is for the pyshical ped, CHAR is for the player info.
0BCB: samp send_give_damage playerid $PLAYER_ACTOR damage -100 weapon 0 bodypart 3@
0223: set_actor $PLAYER_ACTOR health_to xY@
$PLAYER_CHAR defined jf @Main
0BCB: samp send_give_damage playerid $PLAYER_ACTOR damage -100 weapon 0 bodypart 3@
0223: set_actor $PLAYER_ACTOR health_to xY@
$PLAYER_CHAR defined jf @Main
doroftel said:@Springefield, what's difference between 0xCOLOR and 0xFFCOLOR ?
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?
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 ?
Thanks for helping guysspringfield 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.