CLEO Help help @opcode/springfield/any pro cleo guy

CLEO related
Status
Not open for further replies.

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
52
Location
LongForgotten <-> 0x32789
My code
Code:
        format 29@ "file" 
        format 28@ "link" 47 47 47 47
        call @Download 2 29@ 28@ 
        0AF0: read_int_from_ini_file 0@ section "AuthKey" key "Key" store_to 3@
        0B00: delete_file 0@
        if and
        0C18: 3@ = in_string 2@ find 3@
        then
            format 2@ "Input the access code"
            31@ = 1
            Dialog.SetControlText(1@, 3, 2@)
            Dialog.SetVisible(1@, false)
            print "~y~Access ~g~Granted!" time 1500
        else print "~y~Access ~r~Denied!" time 1500
        end    
so this does is download a file then read the key then delete it, after it reads It checks if in the edit box of dialog is there the key there.
but it just accepts the till 11 in this code.
285182929112387291 
                   ^
                   ||
                   ||
                   ||

Is there any opcode or thing to check string length?
Reply fast
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,492
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
0x32789 said:
My code
Code:
        format 29@ "file" 
        format 28@ "link" 47 47 47 47
        call @Download 2 29@ 28@ 
        0AF0: read_int_from_ini_file 0@ section "AuthKey" key "Key" store_to 3@
        0B00: delete_file 0@
        if and
        0C18: 3@ = in_string 2@ find 3@
        then
            format 2@ "Input the access code"
            31@ = 1
            Dialog.SetControlText(1@, 3, 2@)
            Dialog.SetVisible(1@, false)
            print "~y~Access ~g~Granted!" time 1500
        else print "~y~Access ~r~Denied!" time 1500
        end    
so this does is download a file then read the key then delete it, after it reads It checks if in the edit box of dialog is there the key there.
but it just accepts the till 11 in this code.
285182929112387291 
                   ^
                   ||
                   ||
                   ||

Is there any opcode or thing to check string length?
Reply fast

strlen with sampfuncs
 
Status
Not open for further replies.
Top