Dialog Line Not Showing
#1

Well. While testing a dialog I've just coded, I found that the formatted lines in strcat don't appear, what could be the reason of that?

Код:
format(classformula,sizeof(classformula),"<snip>\n\n",pInfo[playerid][Class]);
format(skillnumber,sizeof(skillnumber),"<snip>\n\n",pInfo[playerid][SkillPoints]);
strcat(skilldes,"<snip>\n",560);
strcat(skilldes,"<snip>\n",560);
strcat(skilldes,"<snip>\n",560);
strcat(skilldes,"<snip>\n",560);
strcat(skilldes,classformula,560);
strcat(skilldes,startingpoints,560);
strcat(skilldes,skillnumber,560);
strcat(skilldes,"<snip>",560);
Код:
ShowPlayerDialog(playerid, DiaStartingSkills1, DIALOG_STYLE_MSGBOX, "Skills", skilldes,"Continue","Quit");
Reply
#2

There you go:

Код:
new string[1128];
format(string,sizeof(string)," text \n");
strcat(string," text \n");
strcat(string," text \n");
strcat(string," text \n");

format(string,sizeof(string),string);
ShowPlayerDialog(playerid, DiaStartingSkills1, DIALOG_STYLE_MSGBOX, "Skills", string ,"Continue","Quit");
format(string,sizeof(string),"");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)