CLEO Help [Sampfuncs] 0AF9 Crash

CLEO related
Status
Not open for further replies.

0dmg

Active member
Joined
Jun 20, 2013
Messages
30
Reaction score
0
Hello, recently I have been utilizing sampfuncs in my code, but when using opcode 0AF9, I crash. I am running Samp 0.3x R1 with win7 64 and Cleo 4.1. Below is an excerpt from a script of mine.
Code:
if 
8AF7: get_samp_base_to 0@
then 
0A93: end_custom_thread
end
repeat 
wait 400
until 0AFA: is_samp_structures_available

[code...]

0AF9: samp say_msg "/{redacted command}"

My client log looks like this:
Code:
[21:03:56] {FFFFFF}SA-MP {B9C9BF}0.3x {FFFFFF}Started[21:03:56] > 

================================== <[21:03:56]  [21:03:56] > SAMPFUNCS v2.6 

for 0.3x SUCCESSFULLY LOADED![21:03:56] > Authors: FYP, MogAika[21:03:56]  

[21:03:56] > BlastHack © 2013[21:03:56] > Website: http://blasthack.net

[21:03:56]  [21:03:56] > ================================== <[21:03:59] 

Connecting to 64.62.174.142:7776...[21:03:59] Connected. Joining the 

game...[21:04:01]  [21:04:01]  [21:04:01]  [21:04:01]  [21:04:01]  

[21:04:01] 

___________________________________________________________________________

[21:04:01]                                      Welcome to XXXXXXX 

XXXXXX[21:04:01]  [21:04:01] SERVER REVISION: XXXXXX 

X.X.X {XXXX}| CURRENT SERVER TIME: {XXXXX}XX:X[XX:XX:XX] TEAMSPEAK IP: 

{XXXX}XXXXXXX:XXXXX {XXXX}| WEBSITE URL: {XXXXX}

http://www.XXXXX.XXX[XX:XX:XX] Want to know whats new to the server? 

/XXXXX to find out more![XX:XX:XX] 

___________________________________________________________________________

[21:04:05] Connected to {XX}XXXXXXXXX [0.3X RC2]

[21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] 

[21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] 

[21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] 

[21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] 

[21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] 

[21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] 

[21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] 

[21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] [21:04:06] 

[21:04:06] [21:04:06] [21:04:10] Welcome, XXX XXXXX.[21:04:10] 


[21:04:13] Warning(s007): Exception 0xC0000005 at 0x0[21:04:13] Warning

(s007): Exception 0xC0000005 at 0x46741D[21:04:13] Warning(s007): Exception 

0xC0000005 at 0x0[21:04:13] Warning(s007): Exception 0xC0000005 at 

0x46741D[21:04:13] Warning(s007): Exception 0xC0000005 at 0x0[21:04:13] 

Warning(s007): Exception 0xC0000005 at 0x467488[21:04:13] Kevin Zhaoo says: 

[21:04:13] Warning(s007): Exception 0xC0000005 at 0x0[21:04:13] Warning

(s007): Exception 0xC0000005 at 0x486DDF[21:04:13] Warning(s007): Exception 

0xC0000005 at 0x0[21:04:13] Warning(s007): Exception 0xC0000005 at 0x0

[21:04:13] Warning(s007): Exception 0xC0000005 at 0x486DDF

So, what does the first part of the code above do, check to make sure it's SA-MP and not single player?
And why does 0AF9 crash me?
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
I had the EXACTLY same problem as yours. Everything was looking pretty fine, but when i make a very simple test cleo with "samp say_msg" i was getting crashed.

After further researches i finally found out that the vorbis files were actually supporting the old sampfunc versions, not the version which i was trying to use. So i finally collected all the parts that i needed, and made a .rar file in case it happens again. Here's the rar file which TOTALLY solves the problem (also which is pretty similar to the one that styler posted as v2.6) :
SAMPFUNCv2.6 PATCH!.rar

And also to make a quick test about samp say_msg, i used this :

// This file was decompiled using sascm.ini published by Seemann ( http://sannybuilder.com/files/SASCM.rar ) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'sampfuncv26test.cs'
0662: NOP "XZYTRO SAYS HI"

:MAIN
wait 0
if and
0256: player $PLAYER_CHAR defined
056D: actor $PLAYER_ACTOR defined
044B: actor $PLAYER_ACTOR on_foot
0AB0: key_pressed 88 //X Button
else_jump @MAIN
0AF9: samp say_msg "hi"
wait 5000
jump @MAIN

So that when it doesn't say hi, something is still wrong, but when it says hi, it works, and people will say hi to you too, they won't be suspicious. But if you used it then don't forget to delete :lol: :lol::lol: Otherwise everytime you type 'xD' it will say "hi xD" like a retard
 

0dmg

Active member
Joined
Jun 20, 2013
Messages
30
Reaction score
0
Well, I moved all the patched files you posted into their respective directories, but now it just spits out exceptions like crazy and your thread crashes, got any ideas?
 

0dmg

Active member
Joined
Jun 20, 2013
Messages
30
Reaction score
0
Ah, got it working. After applying the patches (provided by xyztro), I downloaded http://rghost.net/47363336 and moved SB data into Sanny/data/sa. This allowed me to properly compile scripts that utilize sampfuncs. I am no longer encountering errors.
 
Status
Not open for further replies.
Top