help strcat under ondialogresponse
#1

Hi. can someone please help me make strcat work on ondialogresponse? because the dialog I was making is too long so I had to use strcat.

If you noticed I've added new string after else


Код:
        }
  		else new str[256];
		strcat(str, ""CSERVER"• "CWHITE"Wide Option 1 \n"CSERVER"• "CWHITE"Wide Option 2 \n"CSERVER"• "CWHITE"Wide Option 3 \n"CSERVER"• "CWHITE"Wide Option 3 \n"CSERVER"• "CWHITE" Wide Option 4 \n");
		strcat(str, ""CSERVER"• "CWHITE"Wide Option 5 \n"CSERVER"• "CWHITE"Wide Option 6 \n"CSERVER"• "CWHITE"Wide Option 7");
		ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, ""CSERVER"Options", str, "Choose", "Close");
        return 1;
    }
After compiling
Quote:

error 003: declaration of a local variable must appear in a compound block
error 017: undefined symbol "str"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line

those errors are from this line

Quote:

else new str[256];

Reply


Messages In This Thread
help strcat under ondialogresponse - by kbalor - 16.10.2014, 10:40
Re: help strcat under ondialogresponse - by Rudy_ - 16.10.2014, 10:46
Re: help strcat under ondialogresponse - by kbalor - 16.10.2014, 10:52
Re: help strcat under ondialogresponse - by Rudy_ - 16.10.2014, 10:55
Re: help strcat under ondialogresponse - by kbalor - 16.10.2014, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)