Small question.

Rockstars

Member
Joined
May 31, 2013
Messages
18
Reaction score
0
Server I play on has this awkward system where you have to enter a string of random characters (such as - Add90BCVGs871) in the exact way it's displayed.  Random characters are shown on a dialog box and you have to enter them again to move to next one, you do like four or five in total to complete the job.  Is there anyway to copy such string of random characters when displayed?
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
Rockstars said:
Server I play on has this awkward system where you have to enter a string of random characters (such as - Add90BCVGs871) in the exact way it's displayed.  Random characters are shown on a dialog box and you have to enter them again to move to next one, you do like four or five in total to complete the job.  Is there anyway to copy such string of random characters when displayed?

Make video.
 

Rockstars

Member
Joined
May 31, 2013
Messages
18
Reaction score
0
Parazitas said:
Rockstars said:
Server I play on has this awkward system where you have to enter a string of random characters (such as - Add90BCVGs871) in the exact way it's displayed.  Random characters are shown on a dialog box and you have to enter them again to move to next one, you do like four or five in total to complete the job.  Is there anyway to copy such string of random characters when displayed?

Make video.
The circled characters is always random and you need to enter them three times.  Is there a way to grab the characters on each step and enter them into the dialog box automatically?
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
Rockstars said:
Parazitas said:
Rockstars said:
Server I play on has this awkward system where you have to enter a string of random characters (such as - Add90BCVGs871) in the exact way it's displayed.  Random characters are shown on a dialog box and you have to enter them again to move to next one, you do like four or five in total to complete the job.  Is there anyway to copy such string of random characters when displayed?

Make video.

o5s9DuY.png


The circled characters is always random and you need to enter them three times.  Is there a way to grab the characters on each step and enter them into the dialog box automatically?

Code length is the same for all time?
 

Rockstars

Member
Joined
May 31, 2013
Messages
18
Reaction score
0
Parazitas said:
Rockstars said:
Parazitas said:
Rockstars said:
Server I play on has this awkward system where you have to enter a string of random characters (such as - Add90BCVGs871) in the exact way it's displayed.  Random characters are shown on a dialog box and you have to enter them again to move to next one, you do like four or five in total to complete the job.  Is there anyway to copy such string of random characters when displayed?

Make video.

o5s9DuY.png


The circled characters is always random and you need to enter them three times.  Is there a way to grab the characters on each step and enter them into the dialog box automatically?

Code length is the same for all time?

Yes.  It's just random characters everytime though, I want to be able to auto input them into the dialog without typing it out.
(always letters or numbers never symbols or anything)
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
Rockstars said:
Parazitas said:
Rockstars said:
Parazitas said:
Rockstars said:
Server I play on has this awkward system where you have to enter a string of random characters (such as - Add90BCVGs871) in the exact way it's displayed.  Random characters are shown on a dialog box and you have to enter them again to move to next one, you do like four or five in total to complete the job.  Is there anyway to copy such string of random characters when displayed?

Make video.

o5s9DuY.png


The circled characters is always random and you need to enter them three times.  Is there a way to grab the characters on each step and enter them into the dialog box automatically?

Code length is the same for all time?

Yes.  It's just random characters everytime though, I want to be able to auto input them into the dialog without typing it out.
(always letters or numbers never symbols or anything)


This is not request section , but i missed 5mins my life time for you...

[shcode=cpp]
{$CLEO .cs}
0000:
  
  
REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

alloc 2@ 32
format 2@ "Drug Production" //dialog title to detect
  
while true
wait 0

if
0B4C: samp is_dialog_active -1
then
    alloc 3@ 256                           
    0BD8: samp get_dialog_caption 3@ 
    if 0C14: strcmp string1 2@ string2 3@ //comparing 
    then
        free 3@
       wait 200
       alloc 0@ 512 //alloc
       0BD7: 0@ //get text
       0C17: 1@ = strlen 0@ //since text is static, get the text lenght
       1@ -= 11 //since the number you need is always 3-digit, substract 3 from 1@
       005A: 0@ += 1@ //add 1@ to the 0@ pointer, for example if you add 2 to 0@ text will start from "is is your code : last 11 numbers or words"
       0B4B: 0@ //set dialog editbox text, so currently 0@ contains last 11 numbers or words
       0B47: 1 //close dialog with button
       wait 200
       end
    end
    
end 
[/shcode]
 

Rockstars

Member
Joined
May 31, 2013
Messages
18
Reaction score
0
Parazitas said:
Rockstars said:
Parazitas said:
Rockstars said:
Parazitas said:
Make video.

o5s9DuY.png


The circled characters is always random and you need to enter them three times.  Is there a way to grab the characters on each step and enter them into the dialog box automatically?

Code length is the same for all time?

Yes.  It's just random characters everytime though, I want to be able to auto input them into the dialog without typing it out.
(always letters or numbers never symbols or anything)


This is not request section , but i missed 5mins my life time for you...

[shcode=cpp]
{$CLEO .cs}
0000:
  
  
REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

alloc 2@ 32
format 2@ "Drug Production" //dialog title to detect
  
while true
wait 0

if
0B4C: samp is_dialog_active -1
then
    alloc 3@ 256                           
    0BD8: samp get_dialog_caption 3@ 
    if 0C14: strcmp string1 2@ string2 3@ //comparing 
    then
        free 3@
       wait 200
       alloc 0@ 512 //alloc
       0BD7: 0@ //get text
       0C17: 1@ = strlen 0@ //since text is static, get the text lenght
       1@ -= 11 //since the number you need is always 3-digit, substract 3 from 1@
       005A: 0@ += 1@ //add 1@ to the 0@ pointer, for example if you add 2 to 0@ text will start from "is is your code : last 11 numbers or words"
       0B4B: 0@ //set dialog editbox text, so currently 0@ contains last 11 numbers or words
       0B47: 1 //close dialog with button
       wait 200
       end
    end
    
end 
[/shcode]

I thank you good sir.   :motherofgod:
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
Parazitas said:
This is not request section , but i missed 5mins my life time for you...

This code may cause memory leak ):
But that's my snippet, why don't you update it when springfield told me almost same thing in the thread I posted it?
 

0BE4

Active member
Joined
Jan 15, 2017
Messages
124
Reaction score
2
the wait time should be much much more
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
supahdupahnubah said:
Parazitas said:
This is not request section , but i missed 5mins my life time for you...

This code may cause memory leak ):
But that's my snippet, why don't you update it when springfield told me almost same thing in the thread I posted it?

Don't have time update :/
i working 10 - 14h in day , so i just take your code and tried help him.
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,125
Reaction score
149
@Rockstars
@WoopWoop
http://ugbase.eu/Thread-Solution-Unknown-Directive-error-Sanny-Builder
 

WoopWoop

Member
Joined
Jul 20, 2016
Messages
15
Reaction score
0
I contacted Parazitas and he told me install sb data just follow this vid mate
https://www.youtube.com/watch?v=doX_J0qHKC8
@Rockstars
 

Rockstars

Member
Joined
May 31, 2013
Messages
18
Reaction score
0
WoopWoop said:
I contacted Parazitas and he told me install sb data just follow this vid mate
https://www.youtube.com/watch?v=doX_J0qHKC8
@Rockstars

lol ...

Already have SAMPFUNCS installed
 

WoopWoop

Member
Joined
Jul 20, 2016
Messages
15
Reaction score
0
sb data into sanny builder and if your already have that then thats you worked for me
 

Rockstars

Member
Joined
May 31, 2013
Messages
18
Reaction score
0
WoopWoop said:
sb data into sanny builder and if your already have that then thats you worked for me

Well could you be a gem and compile it for me since it doesn't want to do it for me, tried installing the game again with sampfuncs and what not same error.
 
Top