View Single Post
Re: liv(int) in Liv cannot be applied to () - Java
Old
  (#2)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: liv(int) in Liv cannot be applied to () - Java - 04-06-2004

its logical that you have to pass something to liv(), since you ask for ONE parameter. This would not compile in C either

i think this:

Code:
stats_sum = styrke + intelligens + liv.liv()/10;
should be:
Code:
stats_sum = styrke + intelligens + liv.liv/10;



since you want to know the liv as variable, not the function. I dont see any input so i guess you want the liv number... If you want to use the function you should probably do:

Code:
stats_sum = styrke + intelligens + liv.liv(0)/10;
which does the same as the previous line i gave, since it just returns 'liv' as variable.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me

Last edited by stefanhendriks; 04-06-2004 at 21:54..
  
Reply With Quote