m1zg4rd_PL
Well-known member
- Joined
- Jul 19, 2013
- Messages
- 222
- Reaction score
- 0
Hello, I'm making script to simple rejoin current server in game by Ctrl+R. I don't want any *.asi files and other mods, because I'm learning using SAMP Functions (version 2.6). Can someone help solve crashing after using my script?
After Ctrl+R in game i get some warnings and quick crash after them (crash at address 0x00000000)
Thanks for any help
Code:
{$VERSION 3.1.1000}
{$CLEO .cs}
//-------------MAIN---------------
thread 'RELOG'
:RELOG_11
wait 20
if and
0AB0: key_pressed 17
0AB0: key_pressed 82
else_jump @RELOG_11
wait 10
jump @RELOG_45
:RELOG_45
wait 20
if
0AB0: key_pressed 82
else_jump @RELOG_79
wait 1
jump @RELOG_45
:RELOG_79
wait 10
0B39: samp get_current_server_address 0@ port 1@
0B28: samp disconnect_with_reason 0 //I don't know what 0 code mean (maybe timeout or leaving info?)
0B38: samp connect_to_server 0@ port 1@
wait 2000
jump @RELOG_11
After Ctrl+R in game i get some warnings and quick crash after them (crash at address 0x00000000)
Thanks for any help