06.08.2017, 19:42
Hi.
I was using an old YSI 3 and today decided to update YSI to 4.0 and update compiler to Zeex one.
I'm using only y_iterate, y_inline and y_bit. I've also added -Z arg to compiler, but still have the same problem:
There is a lot of the same errors and I don't know what's wrong.
Example lines:
As you can see, GetString() is causing it:
This is error to this function:
What's wrong with this stock? It's not public function and it was ok when using YSI 3.
Why after including YSI 4 I can't return string?
Thanks for help in advance.
I was using an old YSI 3 and today decided to update YSI to 4.0 and update compiler to Zeex one.
I'm using only y_iterate, y_inline and y_bit. I've also added -Z arg to compiler, but still have the same problem:
Code:
error 035: argument type mismatch (argument 1)
Example lines:
Code:
sscanf(GetString("pos", q), "p<,>fff", x, y, z); // or sscanf(GetString("pozycja", q), "p<,>fff", StacjaInfo[q][sPosX], StacjaInfo[q][sPosY], StacjaInfo[q][sPosZ]); // or strcatex(str, _, C_CZERWONY"Jesteś zbanowany/a."C_SZARY"\n\nData: "C_BEZOWY"%s"C_SZARY"\nGracz: "C_BEZOWY"%s\n"C_SZARY"Host: "C_BEZOWY"%s\n"C_SZARY"Powуd: "C_BEZOWY"%s"C_SZARY"\n", GetString("data"), GetString("gracz"), GetString("host"), GetString("powod"));
Code:
stock GetString(field[], row=0) { new temp[128]; cache_get_field_content(row, field, temp); return temp; }
Code:
error 025: function heading differs from prototype error 021: symbol already defined: "returnstringarg" error 090: public functions may not return arrays (symbol "returnstringarg")
Why after including YSI 4 I can't return string?
Thanks for help in advance.