Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 19.03.2006, 22:31   #1
kiralex2
Архивный участник
 
Join Date: Jan 2006
Posts: 73
Default HELP My From AI

Code:
class default_npc {}

class kiralex : default_npc
{
parameter: 
	float test_param = 0.0;
handler: 
	EventHandler NO_DESIRE()
	{
	test_param = 1.0;
	}
}
NASC Print this error
Code:
=======================================
nasc.exe : NPC AI Script Compiler(0.03)
Copyright 2002 NC Soft Inc
any question mail to [email protected]
Patched by Kvoxi. C1-L2NPC compatible.
=======================================
ERROR(10) : expr = expr: l-value is required.
Fail to compile, total error count = 1
Wtf change test_param = 0 to 1:?:


GG Not Work
test_param = test_param + 1;
test_param++;
test_param = test_param2 //test_param2 = 1.0
kiralex2 is offline  
Old 20.03.2006, 01:14   #2
Radmin
Архивный участник
 
Join Date: Oct 2005
Posts: 54
Default

parameter:
float test_param = 0.0;
test_param = constant;
used only read-only

if u use :
test_param <=1.0
test_param ==0.0

OK

but if use test_param = 1;
it not work
Radmin is offline  
Old 20.03.2006, 13:34   #3
kiralex2
Архивный участник
 
Join Date: Jan 2006
Posts: 73
Default

Я нашол ответ, как переменную можно использовать myself.c_ai0 = 0;
kiralex2 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 20:54.