Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 21.07.2006, 05:51   #1
Grundik
Архивный участник
 
Join Date: Jan 2006
Posts: 39
Default [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 =)
Grundik is offline  
Old 07.08.2006, 12:47   #2
spspood
Архивный участник
 
Join Date: Nov 2005
Posts: 22
Default

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
spspood is offline  
Old 07.08.2006, 13:06   #3
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

Maybe you forgot about converting html into unicode?
hel is offline  
Old 08.08.2006, 18:13   #4
Grundik
Архивный участник
 
Join Date: Jan 2006
Posts: 39
Default

Quote:
Originally Posted by hel
Maybe you forgot about converting html into unicode?
Гыыы =)) спасибо Хел ты был прав)) я немного ступил))))
Grundik is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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