Dialog help
#1

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)
Reply
#2

i think they have same dialog ids check...
Reply
#3

Make sure they have a different ID, and you return 0; inside OnDialogResponse.

Read this:
https://sampwiki.blast.hk/wiki/OnDialogResponse
Reply
#4

so how do i change id?
Reply
#5

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
Reply
#6

You got to look for something like this:
pawn Код:
#define DIALOG_LOGIN        0
Then just change the number to a different one like this:
pawn Код:
#define DIALOG_LOGIN        101
And make sure you don't have two dialogs with the same number.
Reply
#7

Quote:
Originally Posted by Deron_Green
Посмотреть сообщение
You got to look for something like this:
pawn Код:
#define DIALOG_LOGIN        0
Then just change the number to a different one like this:
pawn Код:
#define DIALOG_LOGIN        101
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.
Reply
#8

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.
Reply
#9

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
Reply
#10

Yes alter the confilicting ID or ID's to something higher such as 203.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)