Help! FAST
#8

This is what I have for OnDialogResponse
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == DIALOG_COMMANDS)
	{
		//The player has pressed "Close"(because it's de only avaliable button.)
	{
	if(dialogid == DIALOG_CREDITS)
	{
		//The player has pressed "Close"(because it's de only avaliable button.)
	}
    return 0;
}
This is what I have in commands (this is where I want the dialogs to appear)
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/kill", cmdtext, true, 5) == 0)
    {
        SetPlayerHealth(playerid, 0.0);
        return 1;
    }
        if (strcmp("/credits", cmdtext, true, 8) == 0)
    {
        ShowPlayerDialog(playerid, DIALOG_CREDITS, DIALOG_STYLE_MSGBOX, "Credits", "Scripter: DJTunes\nHelper: Captainprice", "Close", "");//redits
        return 1;
    }
	    if (strcmp("/commands", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, DIALOG_COMMANDS, DIALOG_STYLE_MSGBOX, "Commands", "/commands = /kill, /credits, ", "Close", "");
        return 1;
    }
    return 0;
}
Here's where my defines are
Код:
#include <a_samp>

#if defined FILTERSCRIPT

#define DIALOG_COMMANDS   25639
#define DIALOG_CREDITS   27312
Reply


Messages In This Thread
Help! FAST - by DJTunes - 24.12.2012, 16:09
Re: Help! FAST - by DaRk_RaiN - 24.12.2012, 16:14
Re: Help! FAST - by Ballu Miaa - 24.12.2012, 16:27
Re: Help! FAST - by DaRk_RaiN - 24.12.2012, 16:33
Re: Help! FAST - by DJTunes - 24.12.2012, 16:35
Re: Help! FAST - by Typhome - 24.12.2012, 18:21
Re: Help! FAST - by Konstantinos - 24.12.2012, 18:25
Re: Help! FAST - by DJTunes - 24.12.2012, 19:45
Re: Help! FAST - by Typhome - 24.12.2012, 19:54
Re: Help! FAST - by DJTunes - 24.12.2012, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)