SA-MP Forums Archive
Y_hooks and Y_INI at once, need a little help - 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: Y_hooks and Y_INI at once, need a little help (/showthread.php?tid=385567)



Y_hooks and Y_INI at once, need a little help - gnoomen2 - 16.10.2012

So i got this:

Код:
#include <YSI\y_ini>
No errors, but when i add this too:

Код:
#include <YSI\y_hooks>
I get thorse errors:

Код:
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(222) : warning 201: redefinition of constant/macro (symbol "E_INI_WRITE")
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(223) : error 021: symbol already defined: "E_INI_WRITE_NAME"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(229) : warning 201: redefinition of constant/macro (symbol "E_INI_TAGS")
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(230) : error 021: symbol already defined: "E_INI_TAGS_NAME"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(236) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(365) : error 021: symbol already defined: "INI_GetEntryName"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(395) : error 021: symbol already defined: "INI_GetEntryText"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(446) : error 021: symbol already defined: "INI_ParseFile"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(676) : error 021: symbol already defined: "INI_Load"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(693) : error 021: symbol already defined: "INI_Open"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(741) : error 021: symbol already defined: "INI_Close"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(762) : error 021: symbol already defined: "INI_SetTag"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(807) : error 021: symbol already defined: "INI_DeleteTag"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(835) : error 021: symbol already defined: "INI_WriteArray"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1028) : error 021: symbol already defined: "INI_RemoveEntry"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1049) : error 021: symbol already defined: "INI_WriteString"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1068) : error 021: symbol already defined: "INI_WriteInt"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1090) : error 021: symbol already defined: "INI_WriteHex"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1122) : error 021: symbol already defined: "INI_WriteBin"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1158) : error 021: symbol already defined: "INI_WriteBool"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1186) : error 021: symbol already defined: "INI_WriteFloat"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


19 Errors.
How do i fix this?


Re: Y_hooks and Y_INI at once, need a little help - gnoomen2 - 16.10.2012

hah thanks i didnt get like.. cannot read from file YSI/y_ini.. so i accept it the way it was , but now i got this error:

Код:
 : fatal error 100: cannot read from file: "y_inline"
Also before this i downloaded the files from the latest development and putted it in the server folder so everything should be ok i think, but i get this error anyway.

EDIT: I got that one fixed because i had the files in the YSI folder in pawno/includes and copy and pasted them in pawno/includes but now i got this error:

Код:
fatal error 100: cannot read from file: "internal\y_unique"
I found this from your errors list post:

Код:
pawno\include\YSI/y_ini.inc(161) : fatal error 100: cannot read from file: "internal\y_version"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Solution

The true problem is here:

Code:
\YSI/y_ini.inc
Somewhere in your code, or in one of the includes in your code, a file has been included incorrectly. ALL YSI files MUST be included using a backslash, NOT a forward slash. Change:

Code:
#include <YSI/y_ini>

To:

Code:
#include <YSI\y_ini>

Repeat for all other includes done wrong (i.e using "YSI/" not "YSI\").
And my includes are these:

Код:
#include <YSI/y_ini
#include <YSI\y_hooks>
Thats what i got of YSI.


Re: Y_hooks and Y_INI at once, need a little help - Riddick94 - 16.10.2012

pawn Код:
#include <YSI/y_ini
#include <YSI\y_hooks>
****** has already told you something about slash.


Re: Y_hooks and Y_INI at once, need a little help - gnoomen2 - 16.10.2012

Copyed right from the GM:

Код:
/* Server Includes */
#include <a_samp>
#include "../include/gl_common.inc"
#include <streamer>
#include <zcmd>
#include <foreach>
#include <sscanf2>
#include <YSI/y_ini
#include <YSI\y_hooks>
#include <mapandreas>
#include <CNPC>



Re: Y_hooks and Y_INI at once, need a little help - Riddick94 - 16.10.2012

pawn Код:
<YSI/y_ini
And? Don't you see a problem in it?


Re: Y_hooks and Y_INI at once, need a little help - gnoomen2 - 16.10.2012

Crap i see that now, but i tried that too and still i got the same error.

Код:
#include <YSI\y_ini>
#include <YSI\y_hooks>
Now i got this:

Код:
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(222) : warning 201: redefinition of constant/macro (symbol "E_INI_WRITE")
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(223) : error 021: symbol already defined: "E_INI_WRITE_NAME"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(229) : warning 201: redefinition of constant/macro (symbol "E_INI_TAGS")
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(230) : error 021: symbol already defined: "E_INI_TAGS_NAME"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(236) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(365) : error 021: symbol already defined: "INI_GetEntryName"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(395) : error 021: symbol already defined: "INI_GetEntryText"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(446) : error 021: symbol already defined: "INI_ParseFile"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(676) : error 021: symbol already defined: "INI_Load"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(693) : error 021: symbol already defined: "INI_Open"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(741) : error 021: symbol already defined: "INI_Close"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(762) : error 021: symbol already defined: "INI_SetTag"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(807) : error 021: symbol already defined: "INI_DeleteTag"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(835) : error 021: symbol already defined: "INI_WriteArray"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1028) : error 021: symbol already defined: "INI_RemoveEntry"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1049) : error 021: symbol already defined: "INI_WriteString"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1068) : error 021: symbol already defined: "INI_WriteInt"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1090) : error 021: symbol already defined: "INI_WriteHex"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1122) : error 021: symbol already defined: "INI_WriteBin"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1158) : error 021: symbol already defined: "INI_WriteBool"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1186) : error 021: symbol already defined: "INI_WriteFloat"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


19 Errors.
Acctualy we are back at the start now if i havent got something wrong again


Re: Y_hooks and Y_INI at once, need a little help - gnoomen2 - 16.10.2012

I downloaded the file from the developer thing from your downloads post, and putted it all in the sa-mp server 0.3e (Server 0.3e) C:\Users\Frank\Desktop\Server 0.3e

In this folder: C:\Users\Frank\Desktop\Server 0.3e\pawno\include i got the file: y_hooks.inc

This is all the errors i have got:

Код:
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(222) : warning 201: redefinition of constant/macro (symbol "E_INI_WRITE")
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(223) : error 021: symbol already defined: "E_INI_WRITE_NAME"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(229) : warning 201: redefinition of constant/macro (symbol "E_INI_TAGS")
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(230) : error 021: symbol already defined: "E_INI_TAGS_NAME"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(236) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(365) : error 021: symbol already defined: "INI_GetEntryName"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(395) : error 021: symbol already defined: "INI_GetEntryText"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(446) : error 021: symbol already defined: "INI_ParseFile"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(676) : error 021: symbol already defined: "INI_Load"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(693) : error 021: symbol already defined: "INI_Open"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(741) : error 021: symbol already defined: "INI_Close"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(762) : error 021: symbol already defined: "INI_SetTag"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(807) : error 021: symbol already defined: "INI_DeleteTag"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(835) : error 021: symbol already defined: "INI_WriteArray"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1028) : error 021: symbol already defined: "INI_RemoveEntry"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1049) : error 021: symbol already defined: "INI_WriteString"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1068) : error 021: symbol already defined: "INI_WriteInt"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1090) : error 021: symbol already defined: "INI_WriteHex"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1122) : error 021: symbol already defined: "INI_WriteBin"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1158) : error 021: symbol already defined: "INI_WriteBool"
C:\Users\Frank\Desktop\Server 0.3e\pawno\include\YSI/y_ini.inc(1186) : error 021: symbol already defined: "INI_WriteFloat"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


19 Errors.
And all the includes i got:

Код:
/* Server Includes */
#include <a_samp>
#include "../include/gl_common.inc"
#include <streamer>
#include <zcmd>
#include <foreach>
#include <sscanf2>
#include <YSI\y_ini>
#include <YSI\y_hooks>
#include <mapandreas>
#include <CNPC>
Was this what you meant? I also got y_hooks_master.inc... should i do something with that one?


Re: Y_hooks and Y_INI at once, need a little help - Riddick94 - 16.10.2012

I guess that's a foreach include problem. There can be defined y_ini include already, but i am not sure about the error because i don't remember is it should be: "y_ini.inc" or "foreach.inc"


Re: Y_hooks and Y_INI at once, need a little help - gnoomen2 - 16.10.2012

If i remove the foreach include i still got the errors

Weird.. if i just use the y_ini include i still got the errors.. there must be something i have done wrong.. but i downloaded the newest y_ini files. I simply downloaded the rar file from the latest development link at the download section, putted it all in the server folder..


Re: Y_hooks and Y_INI at once, need a little help - Riddick94 - 16.10.2012

Open a foreach include and check.. is it defined a y_ini include?