Mam problem z treścią listu oto ten którego użyłem do napisania swojego:
INSTANCE ItWr_GilbertLetter (C_Item)
{
name = "Notatka";
mainflag = ITEM_KAT_DOCS;
flags = ITEM_MISSION;
value = 0;
visual = "ItWr_Scroll_02.3DS";
material = MAT_LEATHER;
on_state[0] = UseGilbertLetter;
scemeName = "MAP";
description = "Wiadomość";
};
func void UseGilbertLetter ()
{
var int nDocID;
nDocID = Doc_Create () ; // DocManager
Doc_SetPages ( nDocID, 1 ); //wieviel Pages
Doc_SetPage ( nDocID, 0, "letters.TGA" , 0 );
Doc_SetFont ( nDocID, -1, FONT_Book ); // -1 -> all pages
Doc_SetMargins ( nDocID, -1, 50, 50, 50, 50, 1 ); // 0 -> margins are in pixels
Doc_PrintLine ( nDocID, 0, "" );
Doc_PrintLine ( nDocID, 0, "");
Doc_PrintLine ( nDocID, 0, "");
Doc_PrintLines ( nDocID, 0, "Mam już dość. Ukrywam się tutaj strasznie długo, a Bariera podobno upadła." );
Doc_PrintLines ( nDocID, 0, "Teraz raczej nikt nie będzie mnie szukał. Mam dość tej jaskini i całej tej cholernej doliny. Idę do domu.");
Doc_PrintLines ( nDocID, 0, "");
Doc_PrintLine ( nDocID, 0, "" );
Doc_PrintLines ( nDocID, 0, "" );
Doc_PrintLine ( nDocID, 0, "Gilbert");
Doc_PrintLine ( nDocID, 0, "" );
Doc_PrintLine ( nDocID, 0, "");
Doc_Show ( nDocID );
};
ten muj
INSTANCE warzuwnik (C_Item)
{
name = "Spis Warzyw";
mainflag = ITEM_KAT_DOCS;
flags = ITEM_MISSION;
value = 0;
visual = "ItWr_Scroll_02.3DS";
material = MAT_LEATHER;
on_state[0] = UseGilbertLetter;
scemeName = "MAP";
description = "Spis Warzyw";
};
func void Usewarzuwnik ()
{
var int nDocID;
nDocID = Doc_Create () ; // DocManager
Doc_SetPages ( nDocID, 1 ); //wieviel Pages
Doc_SetPage ( nDocID, 0, "letters.TGA" , 0 );
Doc_SetFont ( nDocID, -1, FONT_Book ); // -1 -> all pages
Doc_SetMargins ( nDocID, -1, 50, 50, 50, 50, 1 ); // 0 -> margins are in pixels
Doc_PrintLine ( nDocID, 0, "" );
Doc_PrintLine ( nDocID, 0, "");
Doc_PrintLine ( nDocID, 0, "");
Doc_PrintLines ( nDocID, 0, "jabko x 2" );
Doc_PrintLines ( nDocID, 0, "rzepa");
Doc_PrintLines ( nDocID, 0, "");
Doc_PrintLine ( nDocID, 0, "" );
Doc_PrintLines ( nDocID, 0, "" );
Doc_PrintLine ( nDocID, 0, "Sten");
Doc_PrintLine ( nDocID, 0, "" );
Doc_PrintLine ( nDocID, 0, "");
Doc_Show ( nDocID );
};
mój problem polega że w grze gdy czytam list to wyświetla mi się wiadomość gilberta a nie moja "stena" zobaczcie co jest nie tak.
wszystko kompiruje nawet moda zbrobiłem ale list jest nadal po swojemu a nie tak jakbym chciał