SA-MP Forums Archive
Help Me About OnDialogResponse - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Me About OnDialogResponse (/showthread.php?tid=444998)



Help Me About OnDialogResponse - xganyx - 19.06.2013

my code :
Код:
#include <a_samp>
#include <zcmd>
#if defined FILTERSCRIPT

#define DIALOG_CARS 1
#define DIALOG_GANY 2

#define COLOR_GREEN 0x33AA33AA

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_GANY)
	{
		if(response)
		{
		    SendClientMessage(playerid, COLOR_GREEN, "Thank For Using Gany Weapons And Cars Spawner System.");
		}
		else
		{
		    SendClientMessage(playerid, COLOR_GREEN, "Thank For Using Gany Weapons And Cars Spawner System.");
		}
		return 1;
	}
	
	return 0;
}

CMD:gmenu(playerid, params[])
{
	ShowPlayerDialog(playerid, DIALOG_GANY, DIALOG_STYLE_MSGBOX, "Weapons", "/9mm\n/s9mm\n/de\n/shotgun\n/soshotgun\n/combat\n/uzi\n/mp5\n/ak47\n/m4\n/t9\n/cr\n/sniper\n/camera\n/para", "OK", "Cancel");
	return 1;
}
error :
Код:
C:\Users\Admin\Desktop\FunGaming_Stunt-Freeroam\filterscripts\Carspawn.pwn(207) : error 017: undefined symbol "DIALOG_GANY"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Please Help


Re: Help Me About OnDialogResponse - xganyx - 19.06.2013

Quote:
Originally Posted by ******
Посмотреть сообщение
That just needs to be some unique number that no other dialog uses (or use y_dialog to avoid dealing with IDs entirely).
Thank you so much ******.