Error with cleo detection caused by updating includes -
Misiur - 06.12.2014
Hi there. I'm updating a gamemode, and almost everything gone well so far, except for fuckcleo.inc.
pawn Code:
include\fuckcleo.inc(107) : error 017: undefined symbol "OnVehicleDamageStatusUpdate"
include\fuckcleo.inc(107) : error 010: invalid function or declaration
The error apears when this include tried to hook into this callback (standard ALS hook).
The OnVehicleDamageStatusUpdate is present in a_samp included with gamemode (I've checked in .lst file, it's there). Also it seems that thread for this include was removed, is it deprecated or what?
Thanks
Re: Error with cleo detection caused by updating includes -
Misiur - 06.12.2014
Ah, well, it seems I got some version incompatible with ALS chain.
Previous code in inc:
pawn Code:
#if defined ALS_OnVehicleDamageStatusUpdate
#undef OnVehicleDamageStatusUpdate
#else
#define ALS_OnVehicleDamageStatusUpdate
#endif
#define OnVehicleDamageStatusUpdate FC_OnVehicleDamageStatusUpdate
forward FC_OnVehicleDamageStatusUpdate( vehicleid, playerid );
Code compatible with others (like fixes.inc)
pawn Code:
#if defined _ALS_OnVehicleDamageStatusUpd
#undef OnVehicleDamageStatusUpdate
#else
#define _ALS_OnVehicleDamageStatusUpd
#endif
#define OnVehicleDamageStatusUpdate FC_OnVehicleDamageStatusUpdate
forward FC_OnVehicleDamageStatusUpdate( vehicleid, playerid );
Re: Error with cleo detection caused by updating includes -
Doddinger - 08.12.2018
If someone wants to know which includes were updated...I guessed that it were the YSI includes cz I implemented them for the first time today and I got exactly the same error.
Here's my thread. I also linked this thread so people have the opt to find both threads at same time (some people are searching and searching...and I think it's not bad if they'd have more possibilities to find the same error in another way).
https://sampforum.blast.hk/showthread.php?tid=661591
Re: Error with cleo detection caused by updating includes -
Doddinger - 09.12.2018
Quote:
Originally Posted by RogueDrifter
I took a look at the insides of that include, i scavenged the usable code from it that detected stuff right here: https://github.com/RogueDrifter/Anti...aster/rEac.inc which were basically two functions, the rest wasn't as good. But, that depends on which version you're running since i saw too many when i was trying to look it up and yes the thread for it is nowhere to be found.
|
I put that link in my collection. I looked into the code. I continue tomorrow.
Good night!
Re: Error with cleo detection caused by updating includes -
Banditul18 - 09.12.2018
Quote:
Originally Posted by Doddinger
I put that link in my collection. I looked into the code. I continue tomorrow.
Good night!
|
You just bumped a 4years old topic
Re: Error with cleo detection caused by updating includes -
Doddinger - 09.12.2018
Quote:
Originally Posted by Banditul18
You just bumped a 4years old topic
|
Cz I can. You know, history is orientation. No matter about what or where history is present.
Re: Error with cleo detection caused by updating includes -
RogueDrifter - 13.12.2018
Quote:
Originally Posted by Doddinger
Cz I can. You know, history is orientation. No matter about what or where history is present.
|
Get 'em, i stand by my words.