If I remember correctly, go into merc.h and look for the social_type definition, and look at the definition for 'name'. I think its char name[20], you want it to be char *name.

Davion


From: Rait <[EMAIL PROTECTED]>
To: [email protected]
Subject: Erwin's Sedit
Date: Wed, 14 May 2003 23:37:47 +0300 (EEST)

ok, kinda newbie here, so go easy on me..




I implemented Erwin's online Social edit snippet. Managed to go through step one
with no problems. Added step two, and... won't compile. shows a problem in
social-edit.c




The error it gives is: incompatible types in assignment




and shows that on 4 lines. so I disabled those lines, everything compiles, runs
ok, but won't save socials and shows there are none available.





The 4 lines are:




social->name = fread_string(fp); in void load_social




social_table[maxSocial].name = str_dup(""); /* empty */ in void
load_social_table




social_table[maxSocial-1].name = str_dup (social);




and




social_table[maxSocial].name = str_dup ("");




both in void do_sedit






It always seems to be the line with 'name' in it. Any suggestions? Cuz I'm sure
I did everything how it said in the help file. I checked 4 times.




Oh, and I'm running the latest official QuickMUD based on ROM 24b6




Thanks in advance

--
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


Reply via email to