Welcome to the Builder Academy

Question Spy skill

More
01 May 2013 16:45 #2043 by JTP
Replied by JTP on topic Spy skill
Since you use cygwin you didnt get these warnings:
act.other.c: In function 'do_spy'
act.other.c:1049: warning: array subscript has type 'char'
act.other.c:1049: warning: array subscript has type 'char'
act.other.c:1063: warning: array subscript has type 'char'
act.other.c:1063: warning: array subscript has type 'char'
act.other.c:1064: warning: array subscript has type 'char'
act.other.c:1071: warning: array subscript has type 'char'


line 1049 if (spy_type < 0 || !EXIT(ch, spy_type) || EXIT(ch, spy_type)->to_room == NOWHERE) {

1063 if (IS_SET(EXIT(ch, spy_type)->exit_info, EX_CLOSED) && EXIT(ch, spy_type)->keyword) {
1064 send_to_char(ch, "The %s is closed.\r\n", fname(EXIT(ch, spy_type)->keyword));

1071 char_to_room(ch, world[return_room].dir_option[spy_type]->to_room);

Please Log in or Create an account to join the conversation.

More
01 May 2013 17:13 #2045 by Fizban
Replied by Fizban on topic Spy skill
You can find how to fix almost every warning or error message by googling the error/warning message in question. This is much more helpful than someone else solving the issue for you since then you'll be more likely to understand "why" the message was sent in the first place.

In this case the very first result solves the issue.

Please Log in or Create an account to join the conversation.

More
01 May 2013 21:27 #2050 by rudeboyrave
Replied by rudeboyrave on topic Spy skill
well, now that its working. package it up and send it in as an updated snippet!

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.

Please Log in or Create an account to join the conversation.

More
01 May 2013 22:13 #2051 by Papaya Pete
Replied by Papaya Pete on topic Spy skill
Sure thing. I've never uploaded anything before. :O

Please Log in or Create an account to join the conversation.

Time to create page: 0.183 seconds