Dialogs..
#1

Well, my script is huge and i scripting it. But i forgot the next dialog id. My script is having lots of dialogs and i don't know which dialog id shall i put in the next dialog cuz i forgot em. Please Help Me.

If there is a software or a tip plz post it here
Reply
#2

That why i define all my dialogs like:

#define DialogBLA 1
#define DialogLAL 2

and so on
Reply
#3

Quote:
Originally Posted by TahaAsif12
Посмотреть сообщение
Well, my script is huge and i scripting it. But i forgot the next dialog id. My script is having lots of dialogs and i don't know which dialog id shall i put in the next dialog cuz i forgot em. Please Help Me.

If there is a software or a tip plz post it here
Actually there is an include that it's very useful: https://sampforum.blast.hk/showthread.php?tid=475838

You can use names instead of dialog IDs and in a separate public function (Not inside OnDialogResponse). This can optimise your code and look easier/better to continue with the rest dialogs.
Reply
#4

OK Thanks For Your Help.
Reply
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Actually there is an include that it's very useful: https://sampforum.blast.hk/showthread.php?tid=475838

You can use names instead of dialog IDs and in a separate public function (Not inside OnDialogResponse). This can optimise your code and look easier/better to continue with the rest dialogs.
I would go with that option or y_inline/y_dialog I kind of prefer using y_inline/y_dialog because you can embed your dialog code into your function and the best part of it all the variables in that function will be saved when a dialog response is given the function is how can I put it re-instated.
Reply
#6

I guess I've to check the y_inline/y_dialog out again, but the last time I did (about a year or so) I found it difficult.

I may give a try in the future!
Reply
#7

It's really easy to use actually, you just need to wrap your head around the concept.
Reply


Forum Jump:


Users browsing this thread: