Ok. much of that did help, and I didn't even have the slightest clue about
those things like (int) and %c. Thanks! :)
But one problem occured when I compiled. I've tried to change it back and
forth, but to no success.
These are the errors:
---ERROR START---
act.informative.c: In function `look_at_vmap_room':
act.informative.c:920: warning: int format, pointer arg (arg 4)
act.informative.c:920: warning: int format, pointer arg (arg 5)
act.informative.c:920: warning: int format, pointer arg (arg 6)
act.informative.c:920: warning: int format, pointer arg (arg 7)
act.informative.c:920: warning: int format, pointer arg (arg 8)
act.informative.c:922: warning: int format, pointer arg (arg 4)
act.informative.c:922: warning: int format, pointer arg (arg 5)
act.informative.c:922: warning: int format, pointer arg (arg 6)
act.informative.c:922: warning: int format, pointer arg (arg 7)
act.informative.c:922: warning: int format, pointer arg (arg 8)
act.informative.c:924: warning: int format, pointer arg (arg 4)
act.informative.c:924: warning: int format, pointer arg (arg 5)
act.informative.c:924: warning: int format, pointer arg (arg 6)
act.informative.c:924: warning: int format, pointer arg (arg 7)
act.informative.c:926: warning: int format, pointer arg (arg 4)
act.informative.c:926: warning: int format, pointer arg (arg 5)
act.informative.c:926: warning: int format, pointer arg (arg 6)
act.informative.c:926: warning: int format, pointer arg (arg 7)
act.informative.c:926: warning: int format, pointer arg (arg 8)
act.informative.c:928: warning: int format, pointer arg (arg 4)
act.informative.c:928: warning: int format, pointer arg (arg 5)
act.informative.c:928: warning: int format, pointer arg (arg 6)
act.informative.c:928: warning: int format, pointer arg (arg 7)
act.informative.c:928: warning: int format, pointer arg (arg 8)
---ERROR END---
And this is the code:
---CODE START---
const char *symbol[] = {
"&Gf&n",
"&gF&n",
"&ym&n",
"&KM&n",
"&B~&n",
"&k#&n",
"&YD&n",
"&r#&n",
"&WC&n",
"&WV&n",
"\n"
};
sprintf(buf, "%s%c%c%c%c%c\r\n", buf, symbol[vmap1[y+2][x-2]],
symbol[vmap1[y+2][x-1]],
symbol[vmap1[y+2][x]],
symbol[vmap1[y+2][x+1]],
symbol[vmap1[y+2][x+2]]);
sprintf(buf, "%s%c%c%c%c%c\r\n", buf, symbol[vmap1[y+1][x-2]],
symbol[vmap1[y+1][x-1]],
symbol[vmap1[y+1][x]],
symbol[vmap1[y+1][x+1]],
symbol[vmap1[y+1][x+2]]);
sprintf(buf, "%s%c%c*%c%c\r\n", buf, symbol[vmap1[y][x-2]],
symbol[vmap1[y][x-1]],
symbol[vmap1[y][x+1]],
symbol[vmap1[y][x+2]]);
sprintf(buf, "%s%c%c%c%c%c\r\n", buf, symbol[vmap1[y-1][x-2]],
symbol[vmap1[y-1][x-1]],
symbol[vmap1[(int)y-1][x]],
symbol[vmap1[y-1][x+1]],
symbol[vmap1[y-1][x+2]]);
sprintf(buf, "%s%c%c%c%c%c\r\n", buf, symbol[vmap1[y-2][x-2]],
symbol[vmap1[y-2][x-1]],
symbol[vmap1[y-2][x]],
symbol[vmap1[y-2][x+1]],
symbol[vmap1[y-2][x+2]]);
---CODE END---
This is all....thanks in advance! :)
>Christoffer
+------------------------------------------------------------+
| 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/15/00 PST