> case 'P':
> sprintf(buf2, "%sPut %s [%s%d%s] in %s [%s%d%s], Chance %d%%, Max : %d",
> MYCMD.if_flag ? " then " : "",
> obj_proto[MYCMD.arg1].short_description,
> cyn, obj_index[MYCMD.arg1].virtual, yel,
> obj_proto[MYCMD.arg3].short_description,
> MYCMD.arg4 ? (101 - MYCMD.arg4): 100, MYCMD.arg2
> );
> this case statement give me an error message of arg9 isn't a pointer. This
> statement looks really crazy to me and I am not a very experienced coder. I
> was wondering, where exactly is the probelm?
Well, I count 11 substitutions in the format string, and 8 variables being
used... that would make the 9th one a NULL I think. It looks like you're
missing the variables for the second [%s%d%s].
Ron
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST