ItsRobinson
Active member
- Joined
- Nov 16, 2017
- Messages
- 105
- Reaction score
- 20
I don't have a clue what I'm doing wrong.
If I type in-game
/resizehealth 10 Width
I get "first check" but should get "first check", "inside first string check"
If I type anything other than /resizehealth *int* *string* I get my USAGE message, which is right.
Is it just not possible to do what I'm trying to do?
PHP:
:resizeHealthBar
0B35: 0@ = get_last_command_params
IF
0AD4: 30@ = scan_string 0@ format "%d %s" 1@ 4@v //IF and SET
THEN
say "first check"
if
0C14: strcmp string1 4@v string2 "Width"
then
say "inside first string check"
//Then I wanna do my code for resizing the width
end
ELSE
0AF8: samp add_message_to_chat "{FF0000}USAGE:{FFFFFF} /resizehealth [Amount] [Width/Length]"
END
samp.CmdRet()
If I type in-game
/resizehealth 10 Width
I get "first check" but should get "first check", "inside first string check"
If I type anything other than /resizehealth *int* *string* I get my USAGE message, which is right.
Is it just not possible to do what I'm trying to do?