On Fri, 22 Nov 1996, Daniel Koepke wrote: > On Fri, 22 Nov 1996, Chris Grantham wrote: > > > Hello, I just tried to add levels according to the levels.doc at > > circlemud.org and I encountered a few errors.. around 500.. (Literally) Now > > I'm sure it's just one little thing, but I did everything that the doc said > > to do, including adding names and thaco.. I'm stuck.. if you want the spam > > of the compiler errors, or the new code I'll email 'em to ya, Thanks for > > any help you can give. > > Most likely 'level' is a byte, not an int. A byte has a range > of 0-127. Watch your variable's types, people! :\ Level is actually an "int" which has a value -32k..32k. Unless you're under linux, where "int" is the same as -2.something billion .. 2.something billion. And you're wrong about byte, byte is 0..255. Short is -127..128. +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST