YSI new version -
XaibBaba - 16.06.2016
Code:
C:\Users\sodais\Downloads\server_2_1\server 2\pawno\include\YSI/y_timers.inc(225) : warning 209: function "ScriptInit_OnGameModeInit" should return a value
C:\Users\sodais\Downloads\server_2_1\server 2\gamemodes\new12.pwn(38) : warning 201: redefinition of constant/macro (symbol "strcpy(%0,%1,%2)")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
when i updated YSI new version YSI master then these warning are comming
Re: YSI new version -
SkillNasr - 16.06.2016
Quote:
Originally Posted by Y_Less
1) Use "YSI\y_timers" not "YSI/y_timers". [The / should be \ ]
2) Despite the error, this isn't actually a YSI problem, I think it is an sscanf one and fixed in the latest version. Either way, you can just ignore it.
|
You could search in forum threads
Re: YSI new version -
Konstantinos - 16.06.2016
@SkillNasr: It would give an error for not being able to open y_compilerpass file if a slash was used.
The problem actually is in the script:
- Locate your callback "OnGameModeInit" and return a value (specifically 1) at the end of it.
- Goto line 38 and remove the
strcpy macro. It is already defined in YSI.
Re: YSI new version -
XaibBaba - 16.06.2016
there is return 1; value already and iver the other hand i did that i removed the 38 line
Re: YSI new version -
Konstantinos - 16.06.2016
The only thing left is includes that hook OnGameModeInit and are included after y_timers. Which include(s) are you using?
Re: YSI new version -
XaibBaba - 16.06.2016
let me show you
Re: YSI new version -
XaibBaba - 16.06.2016
#include <YSI\y_timers.inc>
now i am using this but still the same thing and thanks for the line 38 its fixed
and can i have the link of latest scanff plugin please
Re: YSI new version -
Konstantinos - 16.06.2016
I doubt that was a mistake from YSI library but you may try to update it to the latest version:
http://forum.sa-mp.com/showpost.php?...99&postcount=2
If the problem still persists and you're sure that the callback in the main script returns a value, it is from include files that are included after y_timers. Showing the includes the script uses would be very useful.
Re: YSI new version -
XaibBaba - 16.06.2016
Code:
return 1;
}
public OnGameModeExit()
{
this is the return value its there and let me update it
Re: YSI new version -
XaibBaba - 16.06.2016
Code:
C:\Users\sodais\Downloads\server_2_1\server 2\pawno\include\YSI/y_timers.inc(85) : fatal error 100: cannot read from file: "..\YSI_Internal\y_plugins"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
when i updated the y_timer.inc now this is coming
Re: YSI new version -
Konstantinos - 16.06.2016
I hope you updated the whole YSI library and not just y_timers.inc file. You also need to move the folders I mentioned in that post otherwise errors for not being able to read from files will be given.
Also include any file from YSI library with backslash as SkillNasr mentioned.
Re: YSI new version -
XaibBaba - 16.06.2016
i did that as you said and onlu added the y_timers.inc file at the place where to told me still same
Re: YSI new version -
Micko123 - 16.06.2016
Here you go YSI all you need. I have this and i don't have any problem
https://www.sendspace.com/file/srpd1a
Hope it will owrk for you
Re: YSI new version -
XaibBaba - 16.06.2016
guys the error updated
Code:
C:\Users\sodais\Downloads\server_2_1\server 2\pawno\include\YSI\y_iterate.inc(203) : fatal error 111: user error: "Old foreach.inc files are no longer compatible with YSI."
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: YSI new version -
Micko123 - 16.06.2016
update foreach??
Re: YSI new version -
XaibBaba - 16.06.2016
can i have link please
Re: YSI new version -
Micko123 - 16.06.2016
https://www.sendspace.com/file/lfz9v9
Re: YSI new version -
XaibBaba - 16.06.2016
thanks alot

its fixed rep +1 last thing can i have latest scanff plugin please if you have link
Re: YSI new version -
Konstantinos - 16.06.2016
https://sampforum.blast.hk/showthread.php?tid=602923
Re: YSI new version -
Micko123 - 17.06.2016
https://www.sendspace.com/filegroup/...FxhnH%2FuSdS9w
There you go. .dll and .so