Warnings caused by YSI - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Warnings caused by YSI (
/showthread.php?tid=456773)
Warnings caused by YSI -
Amel_PAtomAXx - 07.08.2013
After I loaded y.ini in my script, I got there warnings.
I updated YSI to last version and still got the same thing.
pawn Код:
D:\New Folder\Samp03x\pawno\include\YSI\y_hooks/impl.inc(1711) : warning 235: public function lacks forward declaration (symbol "OnVehicleDamageStatusUpdate")
D:\New Folder\Samp03x\pawno\include\YSI\y_hooks/impl.inc(1755) : warning 235: public function lacks forward declaration (symbol "OnUnoccupiedVehicleUpdate")
D:\New Folder\Samp03x\pawno\include\YSI\y_hooks/impl.inc(2336) : warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage")
D:\New Folder\Samp03x\pawno\include\YSI\y_hooks/impl.inc(2382) : warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamage")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Warnings.
Re: Warnings caused by YSI -
RedJohn - 07.08.2013
You have those:
Код:
OnVehicleDamageStatusUpdate
OnUnoccupiedVehicleUpdate
OnPlayerTakeDamage
OnPlayerGiveDamage
in your script.
But also those functions are in
impl.inc, so you got those warrings, because basically there is 4 functions with the same name in your script.
Re: Warnings caused by YSI -
Amel_PAtomAXx - 07.08.2013
I haven't these functions in my script.
Re: Warnings caused by YSI -
Konstantinos - 07.08.2013
Quote:
Originally Posted by RedJohn
so you got those warrings, because basically there is 4 functions with the same name in your script.
|
I don't see anywhere saying that is already defined. OnPlayerGive/TakeDamage were added in 0.3d so it should forward them into a_samp include file. I assume your a_samp.inc file is not updated to the last one

(0.3x) and re-update the YSI.
Re: Warnings caused by YSI -
Amel_PAtomAXx - 07.08.2013
Quote:
Originally Posted by Konstantinos
I don't see anywhere saying that is already defined. OnPlayerGive/TakeDamage were added in 0.3d so it should forward them into a_samp include file. I assume your a_samp.inc file is not updated to the last one  (0.3x) and re-update the YSI.
|
Everything is up to date.
Re: Warnings caused by YSI -
Vince - 07.08.2013
If it were, then you wouldn't get these warnings. Check again.
Re: Warnings caused by YSI -
Amel_PAtomAXx - 07.08.2013
I updated YSI to the last version 3.09, but where should I find last a_samp?
Re: Warnings caused by YSI -
Konstantinos - 07.08.2013
Download the server package from
http://www.sa-mp.com/download.php
Re: Warnings caused by YSI -
Amel_PAtomAXx - 07.08.2013
Quote:
Originally Posted by Konstantinos
|
Still the same thing.
Re: Warnings caused by YSI -
Blast3r - 07.08.2013
As you can see the warnings aren't in the gamemode it's in the YSI, so try going to the YSI file and check if there are those forwards if not, add them.