ok so looked at some snippets and picked a couple parts i liked or did not like and mashed em together and it compiles and works except for i get this error when compiling. roughly anywayz.
act.informative.c 1435:3 warning format expects argument of type int but argument 4 has type size level_exp(GET_CLASS(ch), i), level_exp(GET_CLASS(ch), i + 1) - 1);
this is stock and i didnt change it and as far as i know it was just being called/ran so it could display it as part of the score command to display hp/str/dex and all that.
ahhh ok dont i feel like a idiot. took 3 seconds to fix. thanks works perfect now till i wanna tweek it to be more personalized. but at least the basics are there.
In more mature C code you may well encounter code that uses integer types as indexes into arrays whereas later code will use the proper, unsigned size_t type (and the signed ptrdiff_t for results of maths on such values where a negative result is possible) for such things - obviously this is more likely if you are home-brewing code with, um, multiple parents / libraries…!
ohhh i used to hate arrays in pascal…. took me forever to get it. but in the little time ive been messing with my mud i have learned a good bit. cant wait to learn more.
I remember lots of people having trouble with the concept of a pointer in pascal class (first computer science class in college, back in the Jurrasic era). I couldn't understand why it seemed so complicated to people, but that's because I learned assembly language first. :)
yeh it was a pain. why i went to writing stuff in qbasic/basica for awhile. heard darkbasic is cool with directx support. but for a good while im working on me mud. starting to know where some things are in the code but barely know how to code in c tho some stuff i get from past experience coding. currently im trying to make it start the charecter of with either a bag of a couple items/20-30 gold for food or a set of eq for each class. found where the new charecter creation is located but im not near ready to try and code something from scratch tho it may be simple. at least i know where im doing it now tho when the time comes.
act.informative.c 1435:3 warning format expects argument of type int but argument 4 has type size
level_exp(GET_CLASS(ch), i), level_exp(GET_CLASS(ch), i + 1) - 1);
wth . i hate being a noob. :(