pawn-lang / YSI-Includes

Just the YSI include files, none of the extra stuff.
211 stars 106 forks source link

Compilation error at y_text and y_languages #537

Open Se8870 opened 3 years ago

Se8870 commented 3 years ago

When using #include <YSI_Players\y_text> and compile with the following script:

#include <a_samp>

// Testing y_text
#include <YSI_Players\y_text>

new Language:bahasaKNTL;

public OnGameModeInit()
{
    bahasaKNTL = Langs_AddLanguage("KNTL", "Bahasa Kontol");
}

public OnPlayerConnect(playerid)
{
    loadtext mode_text[all];
    Text_Send(playerid, $HELLO_MESSAGE);
    return 1;
}

This is the text file (if it's needed).

[all]
HELLO_MESSAGE = hy syg
BYE_MESSAGE = by syg

It'll give this error when compiled.

C:\SA-MP Projects\testing-stuff\dependencies\YSI-Includes\YSI_Players\y_languages\y_languages_entry.inc:119 (error) tag mismatch: expected tags "Bit", "Text", "Group", "File", "Float", "Text3D", or none ("_"); but found "Language"
C:\SA-MP Projects\testing-stuff\dependencies\YSI-Includes\YSI_Players\y_languages\y_languages_entry.inc:224 (error) tag mismatch: expected tags "Bit", "Text", "Group", "File", "Float", "Text3D", or none ("_"); but found "Language"
C:\SA-MP Projects\testing-stuff\dependencies\YSI-Includes\YSI_Players\y_languages\y_languages_entry.inc:265 (error) tag mismatch: expected tags "Bit", "Text", "Group", "File", "Float", "Text3D", or none ("_"); but found "Language"
C:\SA-MP Projects\testing-stuff\dependencies\YSI-Includes\YSI_Players\y_languages\y_languages_entry.inc:297 (error) tag mismatch: expected tags "Bit", "Text", "Group", "File", "Float", "Text3D", or none ("_"); but found "Language"
C:\SA-MP Projects\testing-stuff\dependencies\YSI-Includes\YSI_Players\y_languages\y_languages_entry.inc:366 (error) tag mismatch: expected tags "Bit", "Text", "Group", "File", "Float", "Text3D", or none ("_"); but found "Language"
C:\SA-MP Projects\testing-stuff\dependencies\YSI-Includes\YSI_Players\y_languages\y_languages_entry.inc:382 (error) tag mismatch: expected tags "Bit", "Text", "Group", "File", "Float", "Text3D", or none ("_"); but found "Language"
C:\SA-MP Projects\testing-stuff\dependencies\YSI-Includes\YSI_Players\y_languages\y_languages_entry.inc:397 (error) tag mismatch: expected tags "Bit", "Text", "Group", "File", "Float", "Text3D", or none ("_"); but found "Language"
C:\SA-MP Projects\testing-stuff\dependencies\YSI-Includes\YSI_Players\y_text\y_text_impl.inc:290 (error) undefined symbol "YSI_g_sTextSets"
C:\SA-MP Projects\testing-stuff\dependencies\YSI-Includes\YSI_Players\y_text\y_text_impl.inc:290 (error) expression has no effect
C:\SA-MP Projects\testing-stuff\dependencies\YSI-Includes\YSI_Players\y_text\y_text_impl.inc:290 (error) invalid expression, assumed zero
C:\SA-MP Projects\testing-stuff\dependencies\YSI-Includes\YSI_Players\y_text\y_text_impl.inc:290 (fatal) too many error messages on one line

Testing on lastest YSI includes with sampctl in operating system windows 10.

r4sheed commented 2 years ago

y_text is broken in YSI 5.x. Use YSI 4