Gets into the "else" statement when the variable $name_usr is equal to "Jack".
I always get as a result: "I'm not a person".
Why doesn't it validate correctly? I have an error in the initialization of the variable?
I always get as a result: "I'm not a person".
Why doesn't it validate correctly? I have an error in the initialization of the variable?
PHP:
{$CLEO .cs}
0000:
var
$name_usr : String = 'Jack'
end
while true
wait 1000 ms
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor
then
if
$name_usr == 'Jack'
then
0AD1: show_text "I'm person" 1000
else
0AD1: show_text "I'm not person" 1000
end
end
end
0A93: terminate_this_custom_script