I think problem is from ini reading..
Who have a lot of experience at INI and can help me?
[shcode=cpp]
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: is_samp_available
// MAKE THE CLEO ONLY WORK IF SAMPFUNCS IS LOADED
while true
wait 0
if
0B4C: samp is_dialog_active -1
then
//////////////////////////////////////////// Login Option ////////////////////////////////////////////
if
0AF4: read_string_from_ini_file "CLEO\INI\Autologin.ini" section "FirstServer" key "ServerName" store_to 4@
then
0B3A: samp 5@ = get_current_server_name
if
0C14: strcmp string1 4@ string2 5@
then
if
0AF4: read_string_from_ini_file "CLEO\INI\Autologin.ini" section "FirstServer" key "LoginName" store_to 7@
then
0B2B: samp 6@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 6@ = get_player_nickname 6@
if
0C14: strcmp string1 7@ string2 6@
then
if
0AF4: read_string_from_ini_file "CLEO\INI\Autologin.ini" section "FirstServer" key "Password" store_to 8@
then
0B4B: samp set_current_dialog_editbox_text 8@
0B47: samp close_current_dialog_with_button 1
end
end
end
end
end //////// End of login option
end
end //////// End ALL
[/shcode]
INI
[shcode=cpp]
[FirstServer]
LoginName=White_God
Password=sixsword
ServerName=Savg.lt | Reikalingas 0.3.7 klientas
[/shcode]
Who have a lot of experience at INI and can help me?
[shcode=cpp]
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: is_samp_available
// MAKE THE CLEO ONLY WORK IF SAMPFUNCS IS LOADED
while true
wait 0
if
0B4C: samp is_dialog_active -1
then
//////////////////////////////////////////// Login Option ////////////////////////////////////////////
if
0AF4: read_string_from_ini_file "CLEO\INI\Autologin.ini" section "FirstServer" key "ServerName" store_to 4@
then
0B3A: samp 5@ = get_current_server_name
if
0C14: strcmp string1 4@ string2 5@
then
if
0AF4: read_string_from_ini_file "CLEO\INI\Autologin.ini" section "FirstServer" key "LoginName" store_to 7@
then
0B2B: samp 6@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 6@ = get_player_nickname 6@
if
0C14: strcmp string1 7@ string2 6@
then
if
0AF4: read_string_from_ini_file "CLEO\INI\Autologin.ini" section "FirstServer" key "Password" store_to 8@
then
0B4B: samp set_current_dialog_editbox_text 8@
0B47: samp close_current_dialog_with_button 1
end
end
end
end
end //////// End of login option
end
end //////// End ALL
[/shcode]
INI
[shcode=cpp]
[FirstServer]
LoginName=White_God
Password=sixsword
ServerName=Savg.lt | Reikalingas 0.3.7 klientas
[/shcode]