Help Lock & Archive

Chuck

Well-known member
Joined
Jul 4, 2013
Messages
305
Reaction score
2
Location
South Africa.
My SannyBuilder has problems and I can't fiddle with it. Can you make a .CS out of these two scripts?

monday said:
Code:
{$CLEO .cs}
0000: NOP

33@ = 0
32@ = 0
2@ = 0
1@ = 0

repeat
wait 500
until 0AFA:  is_samp_available

while true
    wait 0
    if key_down 116
    then
        repeat
            wait 0
        until not key_down 116
        
        0B12: 0@ = 0@ XOR true
        33@ = 0
        32@ = 0
        2@ = 0
        1@ = 0
    end
         
    if 0@ == true
    then  
        if 2@ == 0
        then
            //if 32@ > 1000
            //then
            //0AF9: samp say_msg "/getmats"
            //2@++
            //32@ = 0
            //end  
        else
            //if 2@ == 1
            //then
            //    if 32@ > 63000
            //    then
            //    0C72: set_virtual_key 90 down true
            //    wait 200
            //    0C72: set_virtual_key 90 down false
            //    2@ = 0
            //    32@ = 0
            //    end
            end
        end          
    end
    
    //if and 
    //33@ > 1200000
    //0@ == true
    //then
    //33@ = 0
    //    if 1@ == 0
    //    then
    //   1@ = 1
    //    0AF9: samp say_msg "Test"
    //    else
    //        if 1@ == 1
    //        then
    //        1@ = 0
    //        0AF9: samp say_msg "Test x2"
    //        end
    //    end
    //end
end   



I commented out some parts, you could check if the code crashes like this. If it doesn't crash you could check if the code below crashes:



Code:
{$CLEO .cs}
0000: NOP

33@ = 0
32@ = 0
2@ = 0
1@ = 0

repeat
wait 500
until 0AFA:  is_samp_available

while true
    wait 0
    if key_down 116
    then
        repeat
            wait 0
        until not key_down 116
        
        0B12: 0@ = 0@ XOR true
        33@ = 0
        32@ = 0
        2@ = 0
        1@ = 0
    end
         
    if 0@ == true
    then  
        if 2@ == 0
        then
            if 32@ > 1000
            then
            0AF9: samp say_msg "/getmats"
            2@++
            32@ = 0
            end  
        else
            if 2@ == 1
            then
                if 32@ > 63000
                then
                0C72: set_virtual_key 90 down true
                wait 200
                0C72: set_virtual_key 90 down false
                2@ = 0
                32@ = 0
                end
            end
        end          
    end
    
    //if and 
    //33@ > 1200000
    //0@ == true
    //then
    //33@ = 0
    //    if 1@ == 0
    //    then
    //   1@ = 1
    //    0AF9: samp say_msg "Test"
    //    else
    //        if 1@ == 1
    //        then
    //        1@ = 0
    //        0AF9: samp say_msg "Test x2"
    //        end
    //    end
    //end
end
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
RE: Put these scripts in .CS

in the first one, one of the "end"s wasn't commented out, my bad
 

Attachments

  • test.cs
    18.6 KB · Views: 32
  • test2.cs
    18.7 KB · Views: 30

Chuck

Well-known member
Joined
Jul 4, 2013
Messages
305
Reaction score
2
Location
South Africa.
RE: Put these scripts in .CS

gonna test them now


the first one doesn't work in terms of I activate it and nothing happens, and the second is like the other .cs you gave me. it crashes.


[15-05-2016 || 14:17:30.318] Initializing Project SobFoX v0.0.0.4
[15-05-2016 || 14:17:30.318] Compiled: Feb 29 2016 16:36:16 CL:1800
[15-05-2016 || 14:17:30.318] OS: Windows Version 6.1537.7601
[15-05-2016 || 14:17:30.325] SA:MP 0.3.7 was detected. g_dwSAMP_Addr: 0x02B50000
[15-05-2016 || 14:18:57.022] ---------------------------------------------------------------------
[15-05-2016 || 14:18:57.022] Project SobFoX v0.0.0.4 has crashed.
[15-05-2016 || 14:18:57.022] Base address: 0x05A60000, SA:MP base address: 0x02B50000
[15-05-2016 || 14:18:57.022] Exception at address: 0x00000000, Last function processed: end of proxyIDirect3DDevice9::BeginScene()
[15-05-2016 || 14:18:57.022] Cause: EXCEPTION_ACCESS_VIOLATION
[15-05-2016 || 14:18:57.022] Attempted to read from: 0x00000000
[15-05-2016 || 14:18:57.022] EAX: 0x00000000 || ESI: 0x00000064
[15-05-2016 || 14:18:57.022] EBX: 0x00000001 || EDI: 0x00a903d0
[15-05-2016 || 14:18:57.022] ECX: 0x00a90670 || EBP: 0x0022fd14
[15-05-2016 || 14:18:57.022] EDX: 0x00000e55 || ESP: 0x0022fd08
[15-05-2016 || 14:18:57.022] ---------------------------------------------------------------------
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
RE: Put these scripts in .CS

does it crash after you press the activation key or before?
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
RE: Put these scripts in .CS

hmmm, I give up, sorry, it looks like the part below causes crash but for what reason I have no idea:

Code:
                if 32@ > 63000
                then
                0C72: set_virtual_key 90 down true
                wait 200
                0C72: set_virtual_key 90 down false
                2@ = 0
                32@ = 0
                end
 

opce

Active member
Joined
Dec 11, 2014
Messages
61
Reaction score
0
RE: Put these scripts in .CS

Chuck said:
what you mean?
when u ur script use command /getmats it's not working it's working legit samp comads but u created script cleo mod u can change mod on new command /.getmats
 
Top