YSI new version
#1

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

Quote:
Originally Posted by Y_Less
View Post
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
Reply
#3

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

there is return 1; value already and iver the other hand i did that i removed the 38 line
Reply
#5

The only thing left is includes that hook OnGameModeInit and are included after y_timers. Which include(s) are you using?
Reply
#6

let me show you
Reply
#7

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

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.
Reply
#9

Code:
return 1;
}

public OnGameModeExit()
{
this is the return value its there and let me update it
Reply
#10

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

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.
Reply
#12

i did that as you said and onlu added the y_timers.inc file at the place where to told me still same
Reply
#13

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

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.
Reply
#15

update foreach??
Reply
#16

can i have link please
Reply
#17

https://www.sendspace.com/file/lfz9v9
Reply
#18

thanks alot its fixed rep +1 last thing can i have latest scanff plugin please if you have link
Reply
#19

https://sampforum.blast.hk/showthread.php?tid=602923
Reply
#20

https://www.sendspace.com/filegroup/...FxhnH%2FuSdS9w

There you go. .dll and .so
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)