YSI compile error.
#1

Hey all,

It probably isn't all that big of a deal,

but i just added YSI to install somethings for my server, and i try to compile it and i got this error

Код HTML:
C:\Users\Brandon\Desktop\SERVER\pawno\include\YSI\y_iterate.inc(197) : fatal error 111: user error: "Old foreach.inc files are no longer compatible with YSI."
Does this mean i have to update "foreach.inc?

Thanks again guys,
Reply
#2

Update your foreach although "foreach" isn't needed when you have YSI because y_iterate is already the new version of foreach.
Reply
#3

Hey would you be able to link me to a recent foreach?
I did have one put it was in text file and i don't have the slightest clue on how to make it an .inc file.


Reply
#4

Here http://pastebin.com/Seseuh2x click on download then open it using Notepad or Notepad ++ whatever you are using.

Then click on save as change the file type to All files(.)

and change the name of the file to "foreach.inc"
Reply
#5

Alright that worked, i got this error now :S

Код HTML:
C:\Users\Brandon\Desktop\SERVER\pawno\include\YSI\y_svar.inc(67) : fatal error 111: user error: Please define "MODE_NAME" before including y_svar.
Reply
#6

That is because you included the whole YSI library and y_users too, and y_users needs you to put that before the include however just
pawn Код:
#include <YSI\y_iterate>
Reply
#7

Thanks man! it worked,
Also another problem i have come across ><

i added #include <servermoneyGM> to my script and tried to compile it and i got this error,

Код HTML:
C:\Users\Brandon\Desktop\SERVER\pawno\include\YSI/y_hooks.inc(63) : fatal error 111: user error: Did you do <YSI/y_hooks> instead of the required <YSI\y_hooks>?
Reply
#8

Open "servermoneyGM" then change
pawn Код:
#include <YSI/y_hooks>
to
pawn Код:
#include <YSI\y_hooks>
Reply
#9

Worked

But,
Код HTML:
C:\Users\Brandon\Desktop\SERVER\pawno\include\servermoneyGM.inc(62) : error 004: function "OnPlayerHaveExtraCash" is not implemented
C:\Users\Brandon\Desktop\SERVER\pawno\include\servermoneyFS.inc(6) : warning 201: redefinition of constant/macro (symbol "GetPlayerMoney(%1)")
C:\Users\Brandon\Desktop\SERVER\pawno\include\servermoneyFS.inc(7) : warning 201: redefinition of constant/macro (symbol "GivePlayerMoney(%1,%2)")
C:\Users\Brandon\Desktop\SERVER\pawno\include\servermoneyFS.inc(8) : warning 201: redefinition of constant/macro (symbol "ResetPlayerMoney(%1)")
Reply
#10

Quote:
Originally Posted by MrPlatinum
Посмотреть сообщение
Worked

But,
Код HTML:
C:\Users\Brandon\Desktop\SERVER\pawno\include\servermoneyGM.inc(62) : error 004: function "OnPlayerHaveExtraCash" is not implemented
C:\Users\Brandon\Desktop\SERVER\pawno\include\servermoneyFS.inc(6) : warning 201: redefinition of constant/macro (symbol "GetPlayerMoney(%1)")
C:\Users\Brandon\Desktop\SERVER\pawno\include\servermoneyFS.inc(7) : warning 201: redefinition of constant/macro (symbol "GivePlayerMoney(%1,%2)")
C:\Users\Brandon\Desktop\SERVER\pawno\include\servermoneyFS.inc(8) : warning 201: redefinition of constant/macro (symbol "ResetPlayerMoney(%1)")
the warnings are because they are already defined somewhere in your script and you're trying to re-define them and at the top of your script write :
pawn Код:
forward OnPlayerHaveExtraCash(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)