SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 19/06/2013, 09:08 AM   #1
xganyx
Gangsta
 
xganyx's Avatar
 
Join Date: May 2013
Posts: 675
Reputation: 7
Default Help Me About OnDialogResponse

my code :
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 :
Code:
C:\Users\Admin\Desktop\FunGaming_Stunt-Freeroam\filterscripts\Carspawn.pwn(207) : error 017: undefined symbol "DIALOG_GANY"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Please Help
xganyx is offline   Reply With Quote
Old 19/06/2013, 09:13 AM   #2
xganyx
Gangsta
 
xganyx's Avatar
 
Join Date: May 2013
Posts: 675
Reputation: 7
Default Re: Help Me About OnDialogResponse

Quote:
Originally Posted by ****** View Post
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 ******.
xganyx is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OnDialogResponse help? N0FeaR Scripting Help 1 25/09/2012 10:27 PM
[Ajuda] OnDialogResponse JuniorPT PortuguÍs/Portuguese 7 15/09/2012 09:38 PM
OnDialogResponse kbalor Scripting Help 1 14/07/2012 08:04 PM
OnDialogResponse fissekarl Help Archive 1 17/04/2011 04:21 AM
OnDialogResponse Antonio [G-RP] Help Archive 4 31/05/2010 12:13 AM


All times are GMT. The time now is 07:48 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.