Been there, done that 

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote
- nasty trick with operator precedence...
in C and C++, 6 - 3 - 2 = (6 - 3) - 2 = 3 - 2 = 1
In AGS, however, 6 - 3 - 2 = 6 - (3 - 2) = 6 - 1 = 5
Yeah, this has been reported quite a few times. I really need to add a note to a prominent place in the manual, I'm just not really sure where the best place would be.
string buf;
StrFormat (buf, "Your health is %d of %d", health, max_health);
SetLabelText (TITLEBAR_GUI, NUMBER_OF_TEXTBOX, buf);
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.086 seconds with 16 queries.