16.10.2014, 10:40
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
After compiling
those errors are from this line
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; }
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 |
Quote:
else new str[256]; |