KamikazeSripterul
Well-known member
- Joined
- Jun 30, 2019
- Messages
- 353
- Reaction score
- 23
I tried making a code in-game so I don't have to keep quiting the game and re-enter and so on so my question is, why doesn't this work?
Code:
{$CLEO}
{$INCLUDE SF}
0000:
thread "TestsCMD"
repeat
wait 0
until SAMP.Available()
0B34: "restart" @restart
WHILE TRUE
WAIT 0
END
:restart
SAMP.IsCommandTyped(20@)
0459: end_thread_named "%s.cs" 20@
0C62: exec_console_command "cs %s.cs" 20@
SAMP.CmdRet()
Last edited: