Hi Dark,
One thing that stands out right away is you have a space between the
end of your statements and the semi-colon. You should never put a
space before the semi-colon. To declare a variable you should write it
like this.
int hp = 100;
Other than that nothing else stands out like a sore thumb. I hope this helps.



On 3/24/10, dark <[email protected]> wrote:
> Hi.
>
> Well I've started on writing a script from scratch rather than using the
> examples.
>
> I thought the first step in creating a symple turn based combat game was
> getting the game to display the characters' hp, ---- but it's not working
> for some reason and I'm not exactly certain why.
>
> Here's the code:
>
> int hp = 100 ;
> string my_health = "hello, my hp is currently" ;
> ;void main ( )
> {
> alert  "window", my_health + hp);
> }
> ---
> Gamers mailing list __ [email protected]
> If you want to leave the list, send E-mail to
> [email protected].
> You can make changes or update your subscription via the web, at
> http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
> All messages are archived and can be searched and read at
> http://www.mail-archive.com/[email protected].
> If you have any questions or concerns regarding the management of the list,
> please send E-mail to [email protected].
>

---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].

Reply via email to