Hi.
I trying create auto reconnect + auto login [with ini]
First time use ini settings and i am not sure is it good configure?
@springfield
@supahdupahnubah
@0x32789
Cleo
	
	
	
		
INI
	
	
	
		
			
			I trying create auto reconnect + auto login [with ini]
First time use ini settings and i am not sure is it good configure?
@springfield
@supahdupahnubah
@0x32789
Cleo
		Code:
	
	{$CLEO .cs}
0000:
REPEAT
    WAIT 0
UNTIL 0AFA:  is_samp_available
// MAKE THE CLEO ONLY WORK IF SAMPFUNCS IS LOADED
WHILE TRUE
    WAIT 0
    0AC8: 0@ = allocate_memory_size 260 // ALLOCATE MEMORY FOR THE CHAT STRING
    0AB1: @GETCHATENTRYTEXT 1 id 99 to 0@ // THIS IS A FUNCTION THAT STORES THE LAST CHAT STRING INTO 0@    
    IF
    0C29: 2@ = stristr string1 0@ string2 "Server closed the connection." // COMPARE STRING 0@ WITH "Server closed the connection."
    THEN
        wait 5000
        0B27: samp set_gamestate 1 
        repeat
        wait 100
        until 0B4C: samp is_dialog_active -1
        wait 500
        0AF4: 4@v = read_string_from_ini_file "CLEO\INI\Autologin.ini" section "data1" key "LoginName"
        wait 200
        0AF4: 5@v = read_string_from_ini_file "CLEO\Autologin.ini" section "data1" key "Password"
        wait 500
        0B4B: samp set_current_dialog_editbox_text 5@v
        wait 3000
        0B47: samp close_current_dialog_with_button 1
        wait 200
    END    
    0AC9: free_allocated_memory 0@ // FREE THE MEMORY
END
:getChatEntryText
0AF7: samp 1@ = get_base
1@ += 0x21A0E4
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 // size of stChatEntry
005A: 1@ += 0@ // (int)
1@ += 28
0AB2: 1 1@
	INI
		Code:
	
	[data1]
LoginName=Bad_Boy
Password=33459943