Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [HELP] Help me please with "fnHi" in Ai (https://postpacific.loc-online.com/showthread.php?t=5219)

Grundik 21.07.2006 05:51

[HELP] Help me please with "fnHi" in Ai
 
Maybe anyone know why this ai don't work ?

AI
Code:

class test_hi : citizen
{
parameter:

        string fnHi = "test_hi.htm";
handler:

        EventHandler TALKED(talker, fhtml0)
        {
                FHTML_SetFileName(fhtml0, fnHi);
                FHTML_SetStr(fhtml0, "name", talker.name);
                ShowFHTML(talker, fhtml0);
        }
}

HTML
Code:

<html><head><body>
Hi <?name?> ! how are you?</body></html>

Thanks =)

spspood 07.08.2006 12:47

Whats wrong with it?
Code:

class citizen {}

class test_hi : citizen {
parameter:
        string fnHi = "test_hi.htm";
handler:
        EventHandler TALKED(talker, fhtml0)
        {
                FHTML_SetFileName(fhtml0, fnHi);
                FHTML_SetStr(fhtml0, "name", talker.name);
                ShowFHTML(talker, fhtml0);
        }
}

Just gives a 'Success!!!' msg, Havnt tested it.

PS: better a late reply then no reply :x

hel 07.08.2006 13:06

Maybe you forgot about converting html into unicode?

Grundik 08.08.2006 18:13

Quote:

Originally Posted by hel
Maybe you forgot about converting html into unicode?

Гыыы =)) спасибо Хел ты был прав)) я немного ступил))))


All times are GMT. The time now is 16:19.