Hey guys, I'm quite new to coding scripts and I don't have much experience, but I tried to make my first script and I ran into some problems.
This is the code, but when i try to go to the game.
This happens: https://vimeo.com/274850466 (The water blinking and that lag is because of the script).
So can someone tell me what's wrong with the script?
Code:
{$CLEO}
0000: NOP
wait 10000
thread 'Test'
:label_1
wait 0
0@ = Actor.Health($PLAYER_ACTOR)
if and
not 0@ >= 51
not 0@ <= 1
then
wait 950
0AF9: samp say_msg "/drugs"
end
This happens: https://vimeo.com/274850466 (The water blinking and that lag is because of the script).
So can someone tell me what's wrong with the script?