Error with cleo detection caused by updating includes
#1

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
Reply
#2

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 );
Reply
#3

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
Reply
#4

Quote:
Originally Posted by RogueDrifter
View Post
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!
Reply
#5

Quote:
Originally Posted by Doddinger
View Post
I put that link in my collection. I looked into the code. I continue tomorrow.

Good night!
You just bumped a 4years old topic
Reply
#6

Quote:
Originally Posted by Banditul18
View Post
You just bumped a 4years old topic
Cz I can. You know, history is orientation. No matter about what or where history is present.
Reply
#7

Quote:
Originally Posted by Doddinger
View Post
Cz I can. You know, history is orientation. No matter about what or where history is present.
Get 'em, i stand by my words.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)