Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / print question

Author
Message
roujesky
20
Years of Service
User Offline
Joined: 4th Jun 2004
Location:
Posted: 25th Dec 2014 23:39
How do I do the equivalent of
printf("the count is %d", nCount)?

print in agk seems to only want arguments of the same type... or am i missing something?

thanks
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 26th Dec 2014 02:51
You have to convert non string values to strings using the str() command



roujesky
20
Years of Service
User Offline
Joined: 4th Jun 2004
Location:
Posted: 26th Dec 2014 04:36
thanks! simple and obvious once you explained it.... my only excuse is i was tired and had my "C" hat on

Login to post a reply

Server time is: 2024-11-25 14:50:30
Your offset time is: 2024-11-25 14:50:30