CLEO Help [SOLVED] samp say_msg > near_point

CLEO related
Status
Not open for further replies.

Mozz

Active member
Joined
Jan 9, 2014
Messages
35
Reaction score
0
Can someone help me fix this?
Code:
// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$CLEO .cs}

//-------------MAIN---------------
thread 'AUTO_CEMENT' 
0662: NOP "XZYTRO SAYS HI"

:MAIN
wait 0
if and
056D:   actor $PLAYER_ACTOR defined
0256:   player $PLAYER_CHAR defined
00DF:   actor $PLAYER_ACTOR driving
else_jump @MAIN
if or
00EC:   actor $PLAYER_ACTOR 0 near_point -2106.5496 -130.9262 36.2525 radius 5.0 5.0
00EC:   actor $PLAYER_ACTOR 0 near_point 2423.8516 1922.3590 6.9430 radius 5.0 5.0
else_jump @MAIN
0AF9: samp say_msg "/loadcement"
0AF9: samp say_msg "/dropcement"
jump @WAIT

:WAIT
wait 2000
if or
00EC:   actor $PLAYER_ACTOR 0 near_point -2106.5496 -130.9262 36.2525 radius 5.0 5.0
00EC:   actor $PLAYER_ACTOR 0 near_point 2423.8516 1922.3590 6.9430 radius 5.0 5.0
else_jump @MAIN
0AF9: samp say_msg "/loadcement"
0AF9: samp say_msg "/dropcement"
jump @WAIT

I actually want the "/loadcement" to be sent on "-2106.5496 -130.9262 36.2525" and "/dropcement" on "2423.8516 1922.3590 6.9430", not both in each place, but I didn't know how to do it.  I just edited an auto_getmats.cs. :bawww:

Oh, and I got these warnings when I tried it, then crashed:
Code:
[01:49:14] Warning(s007): Exception 0xC0000005 at 0x0
[01:49:14] Warning(s007): Exception 0xC0000005 at 0x0
[01:49:14] {DAA520}Volthe spune: {00FFFF} 
[01:49:14] Warning(s007): Exception 0xC0000005 at 0x466055
[01:49:14] Warning(s007): Exception 0xC0000005 at 0x0
[01:49:15] Warning(s007): Exception 0xC0000005 at 0x0
[01:49:15] Warning(s007): Exception 0xC0000005 at 0x0
[01:49:15] Warning(s007): Exception 0xC0000005 at 0x0
[01:49:15] Warning(s007): Exception 0xC0000005 at 0x465F3F
[01:49:15] Warning(s007): Exception 0xC0000005 at 0x0
[01:49:15] Warning(s007): Exception 0xC0000005 at 0x0
[01:49:15] Warning(s007): Exception 0xC0000005 at 0x0
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
273
Re: samp say_msg > near_point

Code:
{$CLEO .cs}

//-------------MAIN---------------
thread 'AUTO_CEMENT' 
0662: NOP "XZYTRO SAYS HI"

:MAIN
wait 0
if and
056D:   actor $PLAYER_ACTOR defined
0256:   player $PLAYER_CHAR defined
00DF:   actor $PLAYER_ACTOR driving
else_jump @MAIN
if 00EC:   actor $PLAYER_ACTOR 0 near_point -2106.5496 -130.9262 36.2525 radius 5.0 5.0
then 0AF9: "/loadcement"
wait 200
else 
    if 00EC:   actor $PLAYER_ACTOR 0 near_point 2423.8516 1922.3590 6.9430 radius 5.0 5.0
    then 0AF9: "/dropcement"  
    wait 200
    end
end
else_jump @MAIN

Or use AutoCmdSender
 

Mozz

Active member
Joined
Jan 9, 2014
Messages
35
Reaction score
0
Re: samp say_msg > near_point

springfield link said:
Code:
{$CLEO .cs}

//-------------MAIN---------------
thread 'AUTO_CEMENT' 
0662: NOP "XZYTRO SAYS HI"

:MAIN
wait 0
if and
056D:   actor $PLAYER_ACTOR defined
0256:   player $PLAYER_CHAR defined
00DF:   actor $PLAYER_ACTOR driving
else_jump @MAIN
if 00EC:   actor $PLAYER_ACTOR 0 near_point -2106.5496 -130.9262 36.2525 radius 5.0 5.0
then 0AF9: "/loadcement"
wait 200
else 
    if 00EC:   actor $PLAYER_ACTOR 0 near_point 2423.8516 1922.3590 6.9430 radius 5.0 5.0
    then 0AF9: "/dropcement"  
    wait 200
    end
end
else_jump @MAIN

Or use AutoCmdSender

This still makes me crash as I get into that range.

Code:
[07:59:09] Warning(s007): Exception 0xC0000005 at 0x6FA51577
[07:59:09] Warning(s007): Exception 0xC0000005 at 0x0
[07:59:09] Warning(s007): Exception 0xC0000005 at 0x0
[07:59:09] Warning(s007): Exception 0xC0000005 at 0x0
[07:59:09] Warning(s007): Exception 0xC0000005 at 0x0
[07:59:09] Warning(s007): Exception 0xC0000005 at 0x0
[07:59:09] Warning(s007): Exception 0xC0000005 at 0x0
[07:59:09] Warning(s007): Exception 0xC0000005 at 0x0
[07:59:09] Warning(s007): Exception 0xC0000005 at 0x0
[07:59:09] Warning(s007): Exception 0xC0000005 at 0x0
[07:59:09] Warning(s007): Exception 0xC0000005 at 0x0

Though, the AutoCmdSender works pretty well, except for a little bug I'll post in that thread.
Anyway, thanks for the help! :urtheman:
 
Status
Not open for further replies.
Top