ShowPlayerDialog crash
#5

Removing \t doesn't helped :/

Quote:
Originally Posted by Joe Staff
The only thing I can think of that would cause that crash is the creation of ShowDlg, show us, from that line to your loop there.
pawn Код:
forward ShowDialog(playerid, id);
public ShowDialog(playerid, id)
{
    new ShowDlg[1024];
    if(id == 1) {
// code
} else if(id == 2) {
// code > and here goes dialogs until id 11, id 11 is cars dialog
    } else if(id == 11) {
        for(new k=0; k<MAX_CARS; k++) {
            format(ShowDlg,sizeof(ShowDlg),"%s%s - %d$\n",ShowDlg,HouseCarName[k],HouseCarPrice[k]);
        }
        ShowPlayerDialog(playerid, id, DIALOG_STYLE_LIST, "House Car", ShowDlg, "Buy", "Cancel");
    } else if(id == 12) {
        // other dialog
    } else if(id == 13) {
        //other dialog
    }
    return id; 
}
Reply


Messages In This Thread
ShowPlayerDialog crash - by Dreftas - 26.10.2009, 00:36
Re: ShowPlayerDialog crash - by Joe Staff - 26.10.2009, 00:38
Re: ShowPlayerDialog crash - by Dreftas - 26.10.2009, 00:41
Re: ShowPlayerDialog crash - by Joe Staff - 26.10.2009, 00:53
Re: ShowPlayerDialog crash - by Dreftas - 26.10.2009, 00:57
Re: ShowPlayerDialog crash - by Dreftas - 26.10.2009, 01:04
Re: ShowPlayerDialog crash - by Dreftas - 26.10.2009, 01:17
Re: ShowPlayerDialog crash - by Dreftas - 26.10.2009, 01:25
Re: ShowPlayerDialog crash - by Danny_Costelo - 26.10.2009, 03:05
Re: ShowPlayerDialog crash - by Dabombber - 26.10.2009, 05:51

Forum Jump:


Users browsing this thread: 1 Guest(s)