wavelengthzero
Active member
- Joined
- Feb 18, 2014
- Messages
- 45
- Reaction score
- 0
This should create an audio stream to %s, where %s is a URL to the song, but instead %s == (null) and it then unregisters the command.
Any idea where I'm going wrong?
Code:
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
0B34: samp register_client_command "play1" to_label @Label163
30@ = 0
:Label23
wait 0
if
30@ == 1
else_jump @Label23
SAMP.IsCommandTyped(0@)
if
0AD4: $PLAYER_CHAR = scan_string 0@ format "%s" 1@v
else_jump @Label23
jump @Label96
:Label96
wait 30@
say "/radio %s" 1@v
jump @Label241
:Label163
30@ = 1
SAMP.CmdRet
jump @Label23
:Label241
31@ = 0
30@ = 0
SAMP.CmdRet
jump @Label23
Any idea where I'm going wrong?