12.02.2010, 03:38
Well try putting yourself in some debug checks:
Then you will know exactly whether its something in your commands, or something with the dialog itself.
like put
public OnPlayerCommandText(playerid, cmdtext[])
{
printf("OnPlayerCommandText (%d, %s)", playerid, cmdtext);
if (!strcmp(cmdtext, "/tutorial", true, 9))
{
printf("running dialog %d", DIALOG_TUTORIAL_0);
ShowPlayerDialog(playerid, DIALOG_TUTORIAL_0, DILOAG_STYLE_MSGBOX, "Part 1 - Rules:", "Dont spam\n dont dm\n dont...", "cancel", "next");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
...put some in here too
Then you will know exactly whether its something in your commands, or something with the dialog itself.
like put
public OnPlayerCommandText(playerid, cmdtext[])
{
printf("OnPlayerCommandText (%d, %s)", playerid, cmdtext);
if (!strcmp(cmdtext, "/tutorial", true, 9))
{
printf("running dialog %d", DIALOG_TUTORIAL_0);
ShowPlayerDialog(playerid, DIALOG_TUTORIAL_0, DILOAG_STYLE_MSGBOX, "Part 1 - Rules:", "Dont spam\n dont dm\n dont...", "cancel", "next");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
...put some in here too