Dialog help - 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: Dialog help (
/showthread.php?tid=452282)
Dialog help -
JoshP - 20.07.2013
okay, ive got a massive problem.
ive got 2 filterscripts, they both have dialogs (a ammunation and a 24/7) but when i put ammunation first on the filterscript list that one works but the 24/7 store one doesnt, and when i do the oppisit it happens the other way about, help)
Re: Dialog help -
NeroX98 - 20.07.2013
i think they have same dialog ids

check...
Re: Dialog help -
ReVo_ - 20.07.2013
Make sure they have a different ID, and you return 0; inside OnDialogResponse.
Read this:
https://sampwiki.blast.hk/wiki/OnDialogResponse
Re: Dialog help -
JoshP - 21.07.2013
so how do i change id?
Re: Dialog help -
IceCube! - 21.07.2013
Change the numbers...
OnDialogResponce() Under here will require some hunting to find the number if nothing is named.
ShowPlayerDialog(playerid, Dialogid(change this number)...)
IF there is a define such as #define SUPER_AWSOME_TEABAG 4 change the 4 and compile only
Re: Dialog help -
Deron_Green - 21.07.2013
You got to look for something like this:
Then just change the number to a different one like this:
And make sure you don't have two dialogs with the same number.
Re: Dialog help -
IceCube! - 21.07.2013
Quote:
Originally Posted by Deron_Green
You got to look for something like this:
Then just change the number to a different one like this:
And make sure you don't have two dialogs with the same number.
|
Not all scripts have Dialog Defines, some people use memory which I dont understand hence why i gave this and another method above.
Re: Dialog help -
Deron_Green - 21.07.2013
Quote:
Originally Posted by IceCube!
Not all scripts have Dialog Defines, some people use memory which I dont understand hence why i gave this and another method above.
|
Oh. Thanks for telling me i never knew that.
Re: Dialog help -
JoshP - 21.07.2013
this sorta stuff?
#define DIALOG_WEAPONS 29
#define DIALOG_HANDGUNS 30
#define DIALOG_SUBMACHINEGUNS 31
#define DIALOG_SHOTGUNS 32
#define DIALOG_ASSAULTRIFLES 33
#define DIALOG_MELEE 34
#define DIALOG_MISCELLANEOUS 35
#define DIALOG_WEAPONAMMO 36
#define DIALOG_AMMUMSG 37
Re: Dialog help -
IceCube! - 21.07.2013
Yes alter the confilicting ID or ID's to something higher such as 203.