I have made a lot of additions and changed the way a lot of others work lately and now have a few warnings i would like to fix. The first one is this:
: left hand operand of comma expression has no effect
How can i re-write this line so as to stop the error, this line is from a scribe 3 spells snippet.
The next one is:
: assignment from incompatible pointer type
Ok with this one i have sh_int *AttrPerm going into int max_hit, which i guess in it self isnt a bad thing as they are both types int and its the smaller going into the bigger(if i read how it happens correctly), max_hit is now int so i can have 100K hp, what i would like to know is what would be my best remidy for this, i was going to make all the stats ints but thats a waste of memory, my next guess was to add another pointer into the function *AttrPerm2 and make it int. What would be the tidiest way to achieve this. Thanks in advance for all replys.
: left hand operand of comma expression has no effect
if ( !(ch, number_percent(), gsn_scribe) > 50)
How can i re-write this line so as to stop the error, this line is from a scribe 3 spells snippet.
The next one is:
: assignment from incompatible pointer type
AttrPerm = &ch->max_hit;
Ok with this one i have sh_int *AttrPerm going into int max_hit, which i guess in it self isnt a bad thing as they are both types int and its the smaller going into the bigger(if i read how it happens correctly), max_hit is now int so i can have 100K hp, what i would like to know is what would be my best remidy for this, i was going to make all the stats ints but thats a waste of memory, my next guess was to add another pointer into the function *AttrPerm2 and make it int. What would be the tidiest way to achieve this. Thanks in advance for all replys.