01-19-2014, 04:25 AM
You need to right-click the MCServer project in the Solution Explorer and select Set as startup project; then running from VS will work.
Currently the easiest way to convert from a number to a string is by using the Printf() function:
Currently the easiest way to convert from a number to a string is by using the Printf() function:
a_Player->SendMessage(Printf("ItemType: %d", a_Item->m_ItemType));The first parameter to Printf() is the formatting string; every %-prefixed item will get replaced with the next parameter in queue. The formatting sequences follow the standard C printf() function- %d for signed integer, %u for unsigned integer, %x for hexadecimal, %f for floating point, %s for string. Have a look at the docs here: http://www.cplusplus.com/reference/cstdio/printf/