2 Errors because YSI?
#1

Heyho, i have this problem for a long time but how to fix it? I have the new YSI Version.

Код:
warning 201: redefinition of constant/macro (symbol "strcpy(%0,%1)")
warning 203: symbol is never used: "strtok"
Reply
#2

Remove the strcpy from your script, it's already defined in YSI.
And add the keyword stock before strtok to get rid of the warning.
Reply
#3

Where i can find strcpy in my script when i type it in the search console it dont appear, lol
Reply
#4

It must be there or undefine it.

pawn Код:
#undef strcpy
Reply
#5

From where that warning was given? File name?
Reply
#6

Because that:

Код:
#include <YSI\y_va>
But when i change it to:

Код:
#include <y_va>
This warning come:

Код:
cannot read from file: "y_utils"
Reply
#7

No, it should be YSI\y_va

I meant the warning was given by what file? Not, what you added and it appeared. Before this "warning 201: redefinition of constant/macro (symbol "strcpy(%0,%1)")" says the file and the line, so which file and line was?
Reply
#8

that is the line of a createdynamicobject for the map(s). i dont know why this error come.
Reply
#9

A simple & quick fix if you desire to compile it only.
pawn Код:
#if !defined strcpy
           #define strcpy(%0, %1, %2) strcat(%0, %1, %2)
#endif
#pragma unused strtok
Should do the trick.
Reply
#10

thanks 1 Error is away but now i have still this one:

Код:
redefinition of constant/macro (symbol "strcpy(%0,%1)")
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)