Jump to content

Can Someone Giveme A Hand Or Guide About Ai (Nasc)


Recommended Posts

 

You can't define local variables within the code like you would in C / C++.

int mySpecialInt = 56; // Not Allowed! 
 
there are some predefined variables to use
 
i0, i1, i2.... i9 (last?) for integers
s0, s1 for strings
f0, f1 for floats
 
 
you can use even loops
<quote>
for(i0 = 1; i0 < 9 ; i0 = ( i0 + 1 )) {
 
FHTML_SetStr(fhtml0, "estateID"+MakeFString(10+i0,"","","","",""), MakeFString(estate_ID+i0+40,"","","","",""));
FHTML_SetStr(fhtml0, "estateOwner"+MakeFString(10+i0,"","","","",""), MakeFString(estate_ID+i0,"","","","",""));
}
</quote>
 
but really this supported by NCSOF compiler
what can do  your comercial compilers i do not know
Edited by smeli
Link to comment
Share on other sites

 

 
there are some predefined variables to use
 
i0, i1, i2.... i9 (last?) for integers
s0, s1 for strings
f0, f1 for floats
 
 
you can use even loops
<quote>
for(i0 = 1; i0 < 9 ; i0 = ( i0 + 1 )) {
 
FHTML_SetStr(fhtml0, "estateID"+MakeFString(10+i0,"","","","",""), MakeFString(estate_ID+i0+40,"","","","",""));
FHTML_SetStr(fhtml0, "estateOwner"+MakeFString(10+i0,"","","","",""), MakeFString(estate_ID+i0,"","","","",""));
}
</quote>
 
but really this supported by NCSOF compiler
what can do  your comercial compilers i do not know

 

 

Exactly right. Read my post again :P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...