"&Gf&n" is 5 chars. you can't stick that into a %c. Here you need %s. I think your original definition of symbol was extern char symbol[]; That would have been %c, but with the color codes, definetly %s. --Angus - Some very nifty ideas. What else is involved to get this working? ______________________________ Reply Separator _________________________________ Subject: Re: [CODE] [QUESTION] Virtual Map Author: INTERNET:CIRCLE@POST.QUEENSU.CA at CSERVE Date: 5/21/98 5:43 AM 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--- ---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]]); +------------------------------------------------------------+ | 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