Creating a command list in dialog
#2

For me, I learn better by visualizing someone else's code and then going off of that. So here's an example that might help you in some way. I use ZCMD as well, and it's not as hard as you'd think it is. To make a dialog in ZCMD, simply setup your command, whatever you want that to be. Then do something like this, for me it's a /spawncar command. Just use the ShowPlayerDialog function, and then whatever you want the dialog id to be, type of dialog, and in those parentheses is where you'd write whatever you want in your dialog. Since you're making a stats command, I don't know what type of dialog you'd use. But hopefully this gave you some idea for making a dialog. This is the best I could come up with, because I'm pretty new to scripting pawn as well.

Код:
CMD:spawncar(playerid, params[])
{
    ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,"Cars:","Infernus\nElegy\nTurismo\n","Select","Cancel");
    return 1;
}
Reply


Messages In This Thread
Creating a command list in dialog - by FreAkeD - 04.01.2014, 02:35
Re: Creating a command list in dialog - by K9IsGodly - 04.01.2014, 03:25
Re: Creating a command list in dialog - by FreAkeD - 04.01.2014, 03:37
Re: Creating a command list in dialog - by K9IsGodly - 04.01.2014, 03:38
Re: Creating a command list in dialog - by FreAkeD - 04.01.2014, 03:47
Re: Creating a command list in dialog - by K9IsGodly - 04.01.2014, 04:05
Re: Creating a command list in dialog - by FreAkeD - 04.01.2014, 04:06
Re: Creating a command list in dialog - by K9IsGodly - 04.01.2014, 04:38

Forum Jump:


Users browsing this thread: 1 Guest(s)